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