summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-26 11:18:01 -0600
committerJeff Carr <[email protected]>2024-01-26 11:18:01 -0600
commit8a497bf53877c8920f8c3784889117c323d6a597 (patch)
tree26a2a79b27d885dcc5dc4015564cf287363438ba /add.go
parentc017dc9be04d0a06e13559518c0c017a1e106641 (diff)
new gui releasev0.13.13
more quiet output allow disabling of more errors sets the text on window open checkbox state works Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'add.go')
-rw-r--r--add.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/add.go b/add.go
index 41eb55b..641d16c 100644
--- a/add.go
+++ b/add.go
@@ -32,16 +32,20 @@ func add(a *widget.Action) *tree.Node {
newButton(p, n)
case widget.Checkbox:
newCheckbox(p, n)
+ setChecked(n, a.State.Checked)
case widget.Spinner:
newSpinner(p, n)
case widget.Slider:
newSlider(p, n)
case widget.Dropdown:
newDropdown(p, n)
+ setText(n, a)
case widget.Combobox:
newCombobox(p, n)
+ setText(n, a)
case widget.Textbox:
newTextbox(p, n)
+ setText(n, a)
/*
case widget.Image:
newImage(p, n)
@@ -49,5 +53,6 @@ func add(a *widget.Action) *tree.Node {
default:
log.Log(ERROR, "add() error TODO: ", n.WidgetType, n.State.ProgName)
}
+
return n
}