need main() for go plugins

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-18 23:18:28 -06:00
parent 040abfaa06
commit e6d43f5624
2 changed files with 4 additions and 6 deletions

View File

@ -49,6 +49,7 @@ func guiMain() {
log.Println("Stack trace:") log.Println("Stack trace:")
debug.PrintStack() debug.PrintStack()
me.myTree.DoToolkitPanic() me.myTree.DoToolkitPanic()
return
} }
}() }()
ui.Main(func() { ui.Main(func() {
@ -80,3 +81,6 @@ func init() {
// actually, this probably breaks the macos build // actually, this probably breaks the macos build
go guiMain() go guiMain()
} }
func main() {
}

View File

@ -101,9 +101,3 @@ func demoUI() {
// this is messed up. // this is messed up.
// mainWindow.Show() // mainWindow.Show()
} }
/*
func main() {
ui.Main(setupUI)
}
*/