summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 05:52:39 -0500
committerJeff Carr <[email protected]>2025-09-09 05:52:39 -0500
commitdbcd3b5686cf5d894e40b53f33cf588f4682b3f0 (patch)
treeac2951bda86535e9fdcc360e4fe140ae572273d0 /exit.go
parentf67c81d4997b86bdc53615a7e9bd4a25cfe6f4ed (diff)
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/exit.go b/exit.go
index 4043e5b..896ff29 100644
--- a/exit.go
+++ b/exit.go
@@ -6,6 +6,7 @@ package main
import (
"os"
+ "go.wit.com/gui"
"go.wit.com/log"
)
@@ -13,13 +14,13 @@ func okExit(note string) {
if note != "" {
log.Info(ARGNAME, "exit:", note, "ok")
}
- me.myGui.Close()
+ gui.StandardExit()
os.Exit(0)
}
func badExit(err error) {
log.Info(ARGNAME, "failed: ", err)
- me.myGui.Close()
+ gui.StandardExit()
os.Exit(-1)
}
@@ -27,7 +28,7 @@ func exit(note string, err error) {
if note != "" {
log.Info(ARGNAME, "exit:", note, "ok")
}
- me.myGui.Close()
+ gui.StandardExit()
if err == nil {
os.Exit(0)
}