diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 06:21:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 06:21:21 -0600 |
| commit | 70452bdaac9a558c6266f1f46121222c38e17487 (patch) | |
| tree | a75f884f8b7b50cbdd180580c9a27a3dee174033 /treeAdd.go | |
| parent | 36745e0492d52bf337f5e6db1ab52912511ec010 (diff) | |
buttons disabled on window open
Diffstat (limited to 'treeAdd.go')
| -rw-r--r-- | treeAdd.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -67,7 +67,12 @@ func addWidget(n *tree.Node) { tk.color = &colorTab return case widget.Button: - tk.setColorButton() + if tk.node.IsEnabled() { + tk.setColorButton() + } else { + tk.setColorButton() + tk.setColorDisable() + } return case widget.Checkbox: tk.setColorInput() |
