diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 02:56:48 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 02:56:48 -0600 |
| commit | 69eee080459392cef8382a9376aa22692e9ca830 (patch) | |
| tree | 48e030f7da1cc10797936c5eaec370c613c4dcb4 /doGui.go | |
| parent | 6b2a61ff0e95115a35031047efc0a540b72bcd9c (diff) | |
git branch handling continues
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 |
