this was what was causing it to crash. You can not Quit on other windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
2ea414bb14
commit
20a71cca67
2
demo.go
2
demo.go
|
@ -12,7 +12,7 @@ func SetupDemoUI() {
|
||||||
log.Println("setupDemoUI() START")
|
log.Println("setupDemoUI() START")
|
||||||
demowin = ui.NewWindow("Demo GUI Widgets", 500, 300, false)
|
demowin = ui.NewWindow("Demo GUI Widgets", 500, 300, false)
|
||||||
demowin.OnClosing(func(*ui.Window) bool {
|
demowin.OnClosing(func(*ui.Window) bool {
|
||||||
ui.Quit()
|
// ui.Quit()
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
ui.OnShouldQuit(func() bool {
|
ui.OnShouldQuit(func() bool {
|
||||||
|
|
Loading…
Reference in New Issue