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 54cc01b992
2 changed files with 4 additions and 6 deletions

View File

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

View File

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