added missing Show()

This commit is contained in:
Jeff Carr 2024-02-13 16:17:08 -06:00
parent c39117d132
commit 58f530f8bf
2 changed files with 7 additions and 0 deletions

View File

@ -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()

View File

@ -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()