runs Custom() on window close

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-14 22:14:25 -06:00
parent 42e6b0a091
commit ed62785d3f
1 changed files with 6 additions and 0 deletions

View File

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