diff options
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,6 +6,7 @@ package main import ( // if you include more than just this import // then your plugin might be doing something un-ideal (just a guess from 2023/02/27) + "go.wit.com/log" "go.wit.com/toolkits/tree" "go.wit.com/widget" @@ -115,10 +116,14 @@ func newaction(n *tree.Node, atype widget.ActionType) { standardClose() case widget.Enable: w.enable = true - w.enableColor() + w.node.State.Enable = true + w.restoreEnableColor() + log.Info("enable widget in gocui", atype, n.WidgetType, n.ProgName()) case widget.Disable: w.enable = false + w.node.State.Enable = false w.setColorDisable() + log.Info("disable widget in gocui", atype, n.WidgetType, n.ProgName()) case widget.Delete: if w == nil { return |
