From 70f5c8864007fc5cec01bffd7efc15aa235c7135 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 28 Jan 2024 10:38:47 -0600 Subject: still loads and displays window widget Signed-off-by: Jeff Carr --- plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin.go') 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 } -- cgit v1.2.3