diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -223,6 +223,11 @@ func watchCallback() { func (n *Node) gotUserEvent(a widget.Action) { log.Log(CHANGE, "gotUserEvent() received event node =", n.id, n.progname, a.Value) + if !n.IsEnabled() { + log.Log(WARN, "ignoring plugin event for a disabled widget", n.id, n.progname, a.Value) + return + } + switch n.WidgetType { case widget.Dropdown: // n.checked = a.State.Checked // TODO: do this and/or time to switch to protobuf |
