summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 20:00:26 -0600
committerJeff Carr <[email protected]>2025-01-29 20:00:26 -0600
commit9ee828cc3b362cf490d3cd8dd4296ff56a3f85e2 (patch)
tree5dcceb8027c85cda530473103f2c55828aec11b7 /main.go
parent1d6c67b46cc4d3ee137e3f4ddc6145841732cd7c (diff)
hopefully this logic will finally fucking work
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 4720a0c..62753f3 100644
--- a/main.go
+++ b/main.go
@@ -66,6 +66,12 @@ func main() {
// our main window
me.mainWindow = me.myGui.NewWindow("GUI release manager " + VERSION)
+ me.mainWindow.Custom = func() {
+ log.Warn("Window closed. forge configsave")
+ // sets the hidden flag to false so Toggle() works
+ me.forge.ConfigSave()
+ okExit("")
+ }
me.mainBox = me.mainWindow.NewBox("bw hbox", true)
// start the http server for polling status