more structural cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f70f743b1b
commit
e3feda9437
11
main.go
11
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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue