mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Don't show dialog box when run from terminal (#2560)
This commit is contained in:
parent
727644fab3
commit
d77f47824c
2 changed files with 1 additions and 4 deletions
|
|
@ -46,9 +46,8 @@ func recoverPanic() {
|
|||
}
|
||||
|
||||
func handleError(err error) {
|
||||
desktop.FatalError(err)
|
||||
|
||||
if desktop.IsDesktop() {
|
||||
desktop.FatalError(err)
|
||||
manager.GetInstance().Shutdown(0)
|
||||
} else {
|
||||
panic(err)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package desktop
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
|
|
@ -64,7 +63,6 @@ func SendNotification(title string, text string) {
|
|||
|
||||
func IsDesktop() bool {
|
||||
if isDoubleClickLaunched() {
|
||||
fmt.Println("double click launched")
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue