forked from siphomateke/deezer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deezer desktop can be started minimized using the `--start-in-tray` flag. SibrenVasse#12
- Loading branch information
1 parent
5315b0a
commit 7612b5a
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/build/main.js b/build/main.js | ||
index 5066eef..592a6bc 100644 | ||
--- a/build/main.js | ||
+++ b/build/main.js | ||
@@ -3122,8 +3122,12 @@ | ||
finalMinSize[1] | ||
); | ||
} | ||
- isDev() ? this.window.showInactive() : this.window.show(), | ||
- this.thumbar.init(); | ||
+ if (!process.argv.some(arg => arg === '--start-in-tray')) { | ||
+ isDev() ? this.window.showInactive() : this.window.show(), | ||
+ this.thumbar.init(); | ||
+ } else { | ||
+ this.window.hide(); | ||
+ } | ||
}), | ||
this.appService.enableDevMode(); | ||
} |