mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +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) {
|
func handleError(err error) {
|
||||||
desktop.FatalError(err)
|
|
||||||
|
|
||||||
if desktop.IsDesktop() {
|
if desktop.IsDesktop() {
|
||||||
|
desktop.FatalError(err)
|
||||||
manager.GetInstance().Shutdown(0)
|
manager.GetInstance().Shutdown(0)
|
||||||
} else {
|
} else {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package desktop
|
package desktop
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
@ -64,7 +63,6 @@ func SendNotification(title string, text string) {
|
||||||
|
|
||||||
func IsDesktop() bool {
|
func IsDesktop() bool {
|
||||||
if isDoubleClickLaunched() {
|
if isDoubleClickLaunched() {
|
||||||
fmt.Println("double click launched")
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue