only a few node references left
This commit is contained in:
parent
a5800917e8
commit
f36f9cfd0f
|
@ -62,11 +62,11 @@ func doMouseClick(w int, h int) {
|
||||||
case widget.Checkbox:
|
case widget.Checkbox:
|
||||||
if tk.Checked() {
|
if tk.Checked() {
|
||||||
log.Log(WARN, "checkbox is being set to false")
|
log.Log(WARN, "checkbox is being set to false")
|
||||||
tk.node.State.Checked = false
|
tk.SetChecked(false)
|
||||||
tk.setCheckbox()
|
tk.setCheckbox()
|
||||||
} else {
|
} else {
|
||||||
log.Log(WARN, "checkbox is being set to true")
|
log.Log(WARN, "checkbox is being set to true")
|
||||||
tk.node.State.Checked = true
|
tk.SetChecked(true)
|
||||||
tk.setCheckbox()
|
tk.setCheckbox()
|
||||||
}
|
}
|
||||||
me.myTree.SendUserEvent(tk.node)
|
me.myTree.SendUserEvent(tk.node)
|
||||||
|
|
Loading…
Reference in New Issue