summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
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)
}