woops. pretty wrong error in making a new window

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-17 07:07:54 -07:00
parent 7da54784fb
commit 291f18c1c0
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ func StartNewWindow(bg bool, name string, axis int, callback func(*GuiBox) *GuiB
if (bg) { if (bg) {
log.Println("StartNewWindow() START NEW GOROUTINE for ui.Main()") log.Println("StartNewWindow() START NEW GOROUTINE for ui.Main()")
go ui.Main(func() { go ui.Main(func() {
log.Println("gui.StartNewWindow() inside ui.Main()") log.Println("gui.StartNewWindow() inside ui.Main() in NEW goroutine")
// InitWindow must be called from within ui.Main() // InitWindow must be called from within ui.Main()
box := InitWindow(nil, name, axis) box := InitWindow(nil, name, axis)
@ -21,7 +21,7 @@ func StartNewWindow(bg bool, name string, axis int, callback func(*GuiBox) *GuiB
window := box.Window window := box.Window
log.Println("StartNewWindow() box =", box) log.Println("StartNewWindow() box =", box)
go runWindow(window.UiWindow) runWindow(window.UiWindow)
}) })
time.Sleep(2000 * time.Millisecond) // this might make it more stable on windows? time.Sleep(2000 * time.Millisecond) // this might make it more stable on windows?
} else { } else {