summaryrefslogtreecommitdiff
path: root/help.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 01:42:40 -0600
committerJeff Carr <[email protected]>2025-02-06 01:42:40 -0600
commit31c130045d903b3c874dbf8728589a6a909704ae (patch)
tree0abb0bdedd03b7556c08ca86ef1137dc759e4d8a /help.go
parent70a742c98acfe8979bb3c040abd6030388e61542 (diff)
add a goroutine and channel to trigger window redraw
Diffstat (limited to 'help.go')
-rw-r--r--help.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/help.go b/help.go
index 6342a5e..9c1755c 100644
--- a/help.go
+++ b/help.go
@@ -88,6 +88,15 @@ func showHelp() error {
return err
}
}
+ g.SetViewOnTop("help")
me.helpLabel = help
return nil
}
+
+func helpTop() {
+ if me.showHelp { // terrible variable name. FIXME
+ // log.Info("help is hidden")
+ return
+ }
+ me.baseGui.SetViewOnTop("help")
+}