diff --git a/test4/main.go b/test4/main.go index b95d8fe..4fc901b 100644 --- a/test4/main.go +++ b/test4/main.go @@ -16,6 +16,9 @@ func main() { func buttonClick(i int, s string) { log.Println("test4 buttonClick() i, s =", i, s) + if (s == "BACK") { + gui.Data.State = "splash" + } if (gui.Data.State == "splash") { gui.ShowAccountQuestionTab() gui.Data.State = "account1" @@ -34,8 +37,8 @@ func watchGUI() { time.Sleep(2000 * time.Millisecond) for { - log.Println("Sleep()", gui.Data.State) - time.Sleep(200 * time.Millisecond) + log.Println("Sleep() in watchGUI() gui.Data.State =", gui.Data.State) + time.Sleep(2000 * time.Millisecond) if (gui.Data.State == "kill") { log.Println("gui.State = kill")