added missing Show()
This commit is contained in:
parent
c39117d132
commit
58f530f8bf
|
@ -117,6 +117,7 @@ func (w *BasicWindow) StandardExit() {
|
||||||
}
|
}
|
||||||
w.win.Custom = func() {
|
w.win.Custom = func() {
|
||||||
log.Log(GADGETS, "BasicWindow.Custom() closed. handled properly?", w.title)
|
log.Log(GADGETS, "BasicWindow.Custom() closed. handled properly?", w.title)
|
||||||
|
w.hidden = true
|
||||||
if w.Custom != nil {
|
if w.Custom != nil {
|
||||||
log.Log(GADGETS, "BasicWindow.Custom() HAS CUSTOM")
|
log.Log(GADGETS, "BasicWindow.Custom() HAS CUSTOM")
|
||||||
w.Custom()
|
w.Custom()
|
||||||
|
|
|
@ -54,6 +54,12 @@ func (n *OneLiner) Disable() {
|
||||||
n.v.Hide()
|
n.v.Hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (n *OneLiner) Show() {
|
||||||
|
log.Log(GADGETS, "OneLiner.Disable()")
|
||||||
|
n.l.Show()
|
||||||
|
n.v.Show()
|
||||||
|
}
|
||||||
|
|
||||||
func (n *OneLiner) Hide() {
|
func (n *OneLiner) Hide() {
|
||||||
log.Log(GADGETS, "OneLiner.Disable()")
|
log.Log(GADGETS, "OneLiner.Disable()")
|
||||||
n.l.Hide()
|
n.l.Hide()
|
||||||
|
|
Loading…
Reference in New Issue