summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
committerJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
commita6a3e1193fa7c77165f3ed2eb0031f319b4abdd0 (patch)
tree2c5a9fbf4dbc5f7bd5cb235542082da5eba342c6 /plugin.go
parent8ef3fc7a73a004385d36561c6c8acc4be7e3e24b (diff)
work around a toolkit panic()v0.12.11
things should work when GUI is not really there Int() and Bool() helloworld works compiles and runs RawWindow shouldn't auto exit add StandardExit() Signed-off-by: Jeff Carr <[email protected]> Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin.go b/plugin.go
index 42baead..d1b4b2c 100644
--- a/plugin.go
+++ b/plugin.go
@@ -255,9 +255,9 @@ func (n *Node) LoadToolkit(name string) *Node {
return n
}
- log.Log(PLUG, "LoadToolkit() sending InitToolkit action to the plugin channel")
+ log.Log(PLUG, "LoadToolkit() sending Toolkit Init action to the plugin channel")
var a widget.Action
- a.ActionType = widget.InitToolkit
+ a.ActionType = widget.ToolkitInit
plug.pluginChan <- a
// sleep(.5) // temp hack until chan communication is setup
@@ -274,7 +274,7 @@ func (n *Node) CloseToolkit(name string) bool {
if (plug.name == name) {
log.Log(PLUG, "CloseToolkit() sending close", name)
var a widget.Action
- a.ActionType = widget.CloseToolkit
+ a.ActionType = widget.ToolkitClose
plug.pluginChan <- a
// sleep(.5) // is this needed? TODO: properly close channel
return true