summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
committerJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
commit923f7721cca66d84dea77ffd9640d793803142ee (patch)
tree824c9a2b83f574c37279c8526a1566035e78c2bb /button.go
parent03942de00e133daf59da8ed3b6c3e71ce8afe316 (diff)
s/Config/me/ to remove direct access to anything
since most everything needs to be passed to the toolkits everything should be accessed via func()'s Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/button.go b/button.go
index d4f1b7a..6fd0906 100644
--- a/button.go
+++ b/button.go
@@ -17,7 +17,7 @@ func (n *Node) NewButton(name string, custom func()) *Node {
// deprecate this once andlabs is refactored
func callback(i int) bool {
log(debugError, "callback() for widget id =", i)
- n := Config.rootNode.FindId(i)
+ n := me.rootNode.FindId(i)
log(debugError, "callback() found node =", n)
// running custom here means the button get's clicked twice
if (n.Custom == nil) {