summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 06:16:41 -0500
committerJeff Carr <[email protected]>2025-09-09 06:16:41 -0500
commit8ab09243500576460a9e5b12cae0b997933d6577 (patch)
tree07a8b5113c812f0cc31d301f2784ef9e48b92d90 /exit.go
parent58e2a02c5bffdab2eac0da83c3810f1d808da7df (diff)
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/exit.go b/exit.go
index 320778f..a3a431e 100644
--- a/exit.go
+++ b/exit.go
@@ -6,6 +6,7 @@ package main
import (
"os"
+ "go.wit.com/gui"
"go.wit.com/log"
)
@@ -13,12 +14,12 @@ func okExit(note string) {
if note != "" {
log.Info("gus exit:", note, "ok")
}
- me.myGui.Close()
+ gui.StandardExit()
os.Exit(0)
}
func badExit(err error) {
log.Info("gus failed: ", err)
- me.myGui.Close()
+ gui.StandardExit()
os.Exit(-1)
}