diff options
| author | Jeff Carr <[email protected]> | 2024-01-14 22:14:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-14 22:14:25 -0600 |
| commit | ed62785d3fd19d9a5c7bbb34aefdbf0fb24a3799 (patch) | |
| tree | aa916692b8ce6419df39805083b9ebcc6ae12948 | |
| parent | 42e6b0a09131dfe7a4b047db7e9a57c465006ca8 (diff) | |
runs Custom() on window close
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | basicWindow.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/basicWindow.go b/basicWindow.go index aa8713b..bd68fa5 100644 --- a/basicWindow.go +++ b/basicWindow.go @@ -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") |
