summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index 0e55102..0515b56 100644
--- a/plugin.go
+++ b/plugin.go
@@ -66,12 +66,12 @@ func action(a widget.Action) {
// widget was already shown
} else {
log.Log(INFO, "Setting Visible to true", a.ProgName)
- SetVisible(n, true)
+ w.SetVisible(true)
}
case widget.Disable:
if w.Visible() {
log.Log(INFO, "Setting Visible to false", a.ProgName)
- SetVisible(n, false)
+ w.SetVisible(false)
} else {
// widget was already hidden
}