diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 05:52:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 05:52:39 -0500 |
| commit | dbcd3b5686cf5d894e40b53f33cf588f4682b3f0 (patch) | |
| tree | ac2951bda86535e9fdcc360e4fe140ae572273d0 /exit.go | |
| parent | f67c81d4997b86bdc53615a7e9bd4a25cfe6f4ed (diff) | |
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) } |
