mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Don't show dialog box when run from terminal (#2560)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user