summaryrefslogtreecommitdiff
path: root/genericWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-03 01:22:29 -0500
committerJeff Carr <[email protected]>2025-09-03 01:22:29 -0500
commit809f2e564d3b8e6760c1d0cd0ae21f760a42941e (patch)
tree1e8bcca02ad591577dc516a7c5f854fb58fd54eb /genericWindow.go
parent22190f10e35e9617bd8da5782249925955ad4f9e (diff)
wasn't calling Custon() exit correctlyv0.22.38v0.22.37v0.22.36v0.22.35v0.22.34v0.22.33v0.22.32
Diffstat (limited to 'genericWindow.go')
-rw-r--r--genericWindow.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/genericWindow.go b/genericWindow.go
index 78292ca..0232502 100644
--- a/genericWindow.go
+++ b/genericWindow.go
@@ -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")