diff --git a/main.go b/main.go index 51cf7d4..ad32c1b 100644 --- a/main.go +++ b/main.go @@ -425,6 +425,9 @@ func watchGUI() { for { if (count > 10) { log.Println("Sleep() in watchGUI() gui.Data.State =", gui.Data.State) + for key, element := range gui.Data.Windows { + log.Println("watchGUI() gui.Data.Windows =", key, element.Action) + } count = 0 } count += 1 @@ -437,8 +440,12 @@ func watchGUI() { onExit(nil) } else if (gui.Data.State == "HIDE") { time.Sleep(20 * time.Millisecond) // maybe required for macos & windows refresh to work? - gui.Data.Windows[0].Box1.Show() - gui.Data.Windows[0].Box2.Show() + // gui.Data.Windows[0].Box1.Show() + // gui.Data.Windows[0].Box2.Show() + for key, element := range gui.Data.Windows { + log.Println("watchGUI() gui.Data.Windows =", key, element.Action) + element.UiTab.Show() + } gui.Data.State = "done" } }