mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
tray: fix crashlogs, restart from web
This commit is contained in:
6
exit.go
6
exit.go
@@ -11,6 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/getlantern/systray"
|
||||
"github.com/pkg/browser"
|
||||
)
|
||||
|
||||
@@ -75,4 +76,9 @@ func Exit(err interface{}) {
|
||||
log.Fatalf("Failed to execute template: %v", err2)
|
||||
}
|
||||
browser.OpenFile(fpath + ".html")
|
||||
if TRAY {
|
||||
systray.Quit()
|
||||
} else {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user