From 69eee080459392cef8382a9376aa22692e9ca830 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 19 Jan 2025 02:56:48 -0600 Subject: git branch handling continues --- doGui.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doGui.go') 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 -- cgit v1.2.3