diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 06:14:57 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 06:14:57 -0600 |
| commit | 36745e0492d52bf337f5e6db1ab52912511ec010 (patch) | |
| tree | 60002778f640e2acafcf4e4e3d3fe8075a7a0c6b /plugin.go | |
| parent | 9540c01d8320fb729ad4c127d76ff18ca0cd4d0c (diff) | |
button disable maybe works?
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 |
