summaryrefslogtreecommitdiff
path: root/action.go
diff options
context:
space:
mode:
Diffstat (limited to 'action.go')
-rw-r--r--action.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/action.go b/action.go
index f5fdb33..c7284f1 100644
--- a/action.go
+++ b/action.go
@@ -12,8 +12,8 @@ package gui
import (
"errors"
+ "go.wit.com/lib/widget"
"go.wit.com/log"
- "go.wit.com/gui/widget"
)
// 2024/01/11 finally moving to type any. simplify to just 'value'
@@ -47,9 +47,9 @@ func sendAction(n *Node, atype widget.ActionType) {
// set state
a.State.ProgName = n.progname
- a.State.Label = n.label
- a.State.Value = n.value
- a.State.Direction = n.direction
+ a.State.Label = n.label
+ a.State.Value = n.value
+ a.State.Direction = n.direction
for s, _ := range n.strings {
a.State.Strings = append(a.State.Strings, s)
}
@@ -68,7 +68,7 @@ func sendAction(n *Node, atype widget.ActionType) {
a.State.GridOffset.X = n.AtW
a.State.GridOffset.Y = n.AtH
- if (n.parent != nil) {
+ if n.parent != nil {
a.ParentId = n.parent.id
}
a.WidgetType = n.WidgetType
@@ -79,7 +79,7 @@ func sendAction(n *Node, atype widget.ActionType) {
func sendActionToPlugin(a *widget.Action) {
for _, aplug := range allPlugins {
log.Log(PLUG, "Action() aplug =", aplug.name, "Action type=", a.ActionType)
- if (aplug.pluginChan == nil) {
+ if aplug.pluginChan == nil {
log.Warn("Action() retrieving the aplug.PluginChannel()", aplug.name)
aplug.pluginChan = aplug.PluginChannel()
log.Warn("Action() retrieved", aplug.pluginChan)