diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
