summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-07 15:22:47 -0600
committerJeff Carr <[email protected]>2024-02-07 15:22:47 -0600
commitb029617e7dd7988a7557c176017fe261ab7cc000 (patch)
treec00afc20319fcc3017550f3db87d016dbb578983 /init.go
parentdd425dfc815c21f2bd978bf111c5a66b95918dda (diff)
start work towards toolkitclose()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'init.go')
-rw-r--r--init.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/init.go b/init.go
index e307262..453d162 100644
--- a/init.go
+++ b/init.go
@@ -49,7 +49,11 @@ func (me *TreeInfo) newAction(a widget.Action) {
case widget.Checked:
switch n.WidgetType {
case widget.Checkbox:
- me.SetChecked(n, a.State.Checked)
+ if me.SetChecked == nil {
+ log.Log(TREEWARN, "SetChecked() == nil in toolkit", me.PluginName)
+ } else {
+ me.SetChecked(n, a.State.Checked)
+ }
default:
log.Log(TREEWARN, "SetChecked() not supported on widget", n.WidgetType, n.String())
}
@@ -61,9 +65,10 @@ func (me *TreeInfo) newAction(a widget.Action) {
func (me *TreeInfo) catchActionChannel() {
defer func() {
if r := recover(); r != nil {
- log.Log(TREEWARN, me.PluginName, "tree YAHOOOO Recovered in simpleStdin()", r)
+ log.Log(TREEWARN, "YAHOOOO Recovered in tree.catchActionChannel()", r)
+ log.Log(TREEWARN, "YAHOOOO Recovered in tree.catchActionChannel() Plugin:", me.PluginName)
me.SendToolkitPanic()
- panic(-1)
+ me.ToolkitClose()
}
}()
log.Log(TREE, "catchActionChannel() START")