runs Custom() on window close
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
42e6b0a091
commit
ed62785d3f
|
@ -111,6 +111,12 @@ func (w *BasicWindow) Make() {
|
|||
w.win = w.parent.RawWindow(w.title)
|
||||
w.win.Custom = func() {
|
||||
log.Warn("BasicWindow.Custom() closed. TODO: handle this", w.title)
|
||||
log.Warn("BasicWindow.Custom() closed. handled properly?", w.title)
|
||||
w.parent.Hide()
|
||||
w.hidden = true
|
||||
if w.Custom != nil {
|
||||
w.Custom()
|
||||
}
|
||||
}
|
||||
if w.vertical {
|
||||
w.box = w.win.NewVerticalBox("BW VBOX")
|
||||
|
|
Loading…
Reference in New Issue