summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.go b/main.go
index 671d4ac..8fc343d 100644
--- a/main.go
+++ b/main.go
@@ -18,6 +18,8 @@ var uiMain sync.Once
var muAction sync.Mutex
func queueMain(currentA widget.Action) {
+ /*
+ // this never happends
defer func() {
if r := recover(); r != nil {
log.Warn("YAHOOOO Recovered in queueMain() application:", r)
@@ -27,8 +29,15 @@ func queueMain(currentA widget.Action) {
me.myTree.DoToolkitPanic()
}
}()
+ */
+ // andlabs puts this inside the gofunction over there
+ // probably this should be changed around here
+ // and only andlabs stuff should be sent there?
+ // it's easier to code it this way however
+ // also, if it dies here, it get's caught
+ // usually, this is where it dies
ui.QueueMain(func() {
- rawAction(&currentA)
+ processAction(&currentA)
})
}
@@ -43,7 +52,10 @@ func guiMain() {
}
}()
ui.Main(func() {
- demoUI()
+ // this is a bad hack for now.
+ // a better way would be to spawn ui.Main on the first actual window
+ // that is supposed to be displayed
+ placeholderUI()
})
}