summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basicWindow.go1
-rw-r--r--oneLiner.go6
2 files changed, 7 insertions, 0 deletions
diff --git a/basicWindow.go b/basicWindow.go
index ac6d5eb..ec42c10 100644
--- a/basicWindow.go
+++ b/basicWindow.go
@@ -117,6 +117,7 @@ func (w *BasicWindow) StandardExit() {
}
w.win.Custom = func() {
log.Log(GADGETS, "BasicWindow.Custom() closed. handled properly?", w.title)
+ w.hidden = true
if w.Custom != nil {
log.Log(GADGETS, "BasicWindow.Custom() HAS CUSTOM")
w.Custom()
diff --git a/oneLiner.go b/oneLiner.go
index 13c3a53..14a1af7 100644
--- a/oneLiner.go
+++ b/oneLiner.go
@@ -54,6 +54,12 @@ func (n *OneLiner) Disable() {
n.v.Hide()
}
+func (n *OneLiner) Show() {
+ log.Log(GADGETS, "OneLiner.Disable()")
+ n.l.Show()
+ n.v.Show()
+}
+
func (n *OneLiner) Hide() {
log.Log(GADGETS, "OneLiner.Disable()")
n.l.Hide()