summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 01:42:40 -0600
committerJeff Carr <[email protected]>2025-02-06 01:42:40 -0600
commit31c130045d903b3c874dbf8728589a6a909704ae (patch)
tree0abb0bdedd03b7556c08ca86ef1137dc759e4d8a /checkbox.go
parent70a742c98acfe8979bb3c040abd6030388e61542 (diff)
add a goroutine and channel to trigger window redraw
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/checkbox.go b/checkbox.go
index ac82d7f..4b5f4f2 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -15,9 +15,11 @@ func setChecked(n *tree.Node, b bool) {
var tk *guiWidget
tk = n.TK.(*guiWidget)
- if tk.node.State.Label == "" {
- tk.node.State.Label = "BLANK"
- }
+ /*
+ if tk.node.State.Label == "" {
+ tk.node.State.Label = "BLANK"
+ }
+ */
if tk.node.State.Checked {
log.Log(WARN, "setCheckbox() got true", tk.node.State.Checked)
tk.labelN = "X " + tk.node.State.Label
@@ -36,9 +38,11 @@ func (w *guiWidget) setCheckbox() {
log.Log(WARN, "setCheckbox() being run on widget:", w.node.WidgetType)
return
}
- if w.node.State.Label == "" {
- w.node.State.Label = "BLANK"
- }
+ /*
+ if w.node.State.Label == "" {
+ w.node.State.Label = "BLANK"
+ }
+ */
if w.node.State.Checked {
log.Log(WARN, "setCheckbox() got true", w.node.State.Checked)
w.labelN = "X " + w.node.State.Label