summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
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