summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-19 02:56:48 -0600
committerJeff Carr <[email protected]>2025-01-19 02:56:48 -0600
commit69eee080459392cef8382a9376aa22692e9ca830 (patch)
tree48e030f7da1cc10797936c5eaec370c613c4dcb4 /doGui.go
parent6b2a61ff0e95115a35031047efc0a540b72bcd9c (diff)
git branch handling continues
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index f84f019..039c374 100644
--- a/doGui.go
+++ b/doGui.go
@@ -3,6 +3,8 @@ package main
// An app to submit patches for the 30 GO GUI repos
import (
+ "os"
+
"go.wit.com/gui"
"go.wit.com/lib/debugger"
"go.wit.com/lib/gadgets"
@@ -30,6 +32,16 @@ func doGui() {
me.mainWindow = gadgets.RawBasicWindow("Forge: (this doesn't work yet)")
me.mainWindow.Make()
me.mainWindow.Show()
+ me.mainWindow.Custom = func() {
+ log.Warn("MAIN WINDOW CLOSE")
+ count := me.forge.RillReload()
+ log.Info("Repo Reload count =", count)
+ if count != 0 {
+ me.forge.ConfigSave()
+ }
+ os.Exit(0)
+ }
+
me.mainbox = me.mainWindow.Box()
// disable the interface while everything is scanned