summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 23:18:28 -0600
committerJeff Carr <[email protected]>2024-01-18 23:18:28 -0600
commit54cc01b992e48ff92cbf5aeba779544dc8704ee9 (patch)
tree9170c38b5c2c4393166a01f6b5c3a3fcf315add0
parent040abfaa06a51c757244eae318569e7bd1ce7993 (diff)
need main() for go pluginsv0.0.7
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--main.go4
-rw-r--r--updateui.go6
2 files changed, 4 insertions, 6 deletions
diff --git a/main.go b/main.go
index 8fc343d..22be764 100644
--- a/main.go
+++ b/main.go
@@ -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() {
+}
diff --git a/updateui.go b/updateui.go
index 3e75f7c..b6c3096 100644
--- a/updateui.go
+++ b/updateui.go
@@ -101,9 +101,3 @@ func demoUI() {
// this is messed up.
// mainWindow.Show()
}
-
-/*
-func main() {
- ui.Main(setupUI)
-}
-*/