tray: fix crashlogs, restart from web

This commit is contained in:
Harvey Tindall
2021-08-16 20:41:07 +01:00
parent 9693ce3dcd
commit eb3489b34f
6 changed files with 26 additions and 93 deletions

View File

@@ -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)
}
}