more structural cleanups

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-31 13:15:10 -07:00
parent f70f743b1b
commit e3feda9437
1 changed files with 9 additions and 2 deletions

11
main.go
View File

@ -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"
}
}