summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/main.go b/main.go
index 22be764..daac06c 100644
--- a/main.go
+++ b/main.go
@@ -19,16 +19,16 @@ 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)
- log.Println("Recovered from panic:", r)
- log.Println("Stack trace:")
- debug.PrintStack()
- me.myTree.DoToolkitPanic()
- }
- }()
+ // this never happends
+ defer func() {
+ if r := recover(); r != nil {
+ log.Warn("YAHOOOO Recovered in queueMain() application:", r)
+ log.Println("Recovered from panic:", r)
+ log.Println("Stack trace:")
+ debug.PrintStack()
+ me.myTree.SendToolkitPanic()
+ }
+ }()
*/
// andlabs puts this inside the gofunction over there
// probably this should be changed around here
@@ -48,7 +48,7 @@ func guiMain() {
log.Println("Recovered from panic:", r)
log.Println("Stack trace:")
debug.PrintStack()
- me.myTree.DoToolkitPanic()
+ me.myTree.SendToolkitPanic()
return
}
}()
@@ -70,7 +70,7 @@ func init() {
log.Log(INFO, "Init()")
// Can you pass values to a plugin init() ? Otherwise, there is no way to safely print
// log.Log(INFO, "init() Setting defaultBehavior = true")
- setDefaultBehavior(true)
+ // setDefaultBehavior(true)
me.myTree = tree.New()
me.myTree.PluginName = "andlabs"