wasn't calling Custon() exit correctly

This commit is contained in:
Jeff Carr 2025-09-03 01:22:29 -05:00
parent 22190f10e3
commit 809f2e564d
1 changed files with 4 additions and 1 deletions

View File

@ -111,9 +111,12 @@ func NewGenericWindow(title string, grouptxt string) *GenericWindow {
// gw.Win.Make()
gw.Win.Custom = func() {
log.Log(WARN, "Found Window close. setting hidden=true")
log.Log(WARN, "GenericWindow.Custom()")
// sets the hidden flag to false so Toggle() works
gw.Win.Hide()
if gw.Custom != nil {
gw.Custom()
}
}
gw.Shelf = gw.Win.NewHorizontalBox("Shelf")
// gw.Shelf.Vertical().SetProgName("ShelfBox")