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.
- Loading branch information
1 parent
b4a9cbd
commit dfb2df4
Showing
5 changed files
with
23 additions
and
151 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
export DZ_DISABLE_UPDATE="yes" | ||
exec electron /usr/share/deezer/app.asar "$@" |
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
diff --git a/build/main.js b/build/main.js | ||
index 6934bbd..a150316 100644 | ||
index 823a767..3e67094 100644 | ||
--- a/build/main.js | ||
+++ b/build/main.js | ||
@@ -3123,7 +3123,7 @@ module.exports = (function(modules) { | ||
@@ -1650,7 +1650,7 @@ | ||
}; | ||
} | ||
getQuitOptions() { | ||
- return { label: i18n.t("menu_quit-deezer_label"), role: "quit" }; | ||
+ return { label: i18n.t("menu_quit-deezer_label"), click: () => { external_electron_.app.isQuiting = true; external_electron_.app.quit(); } }; | ||
- return { label: i18n_t("menu_quit-deezer_label"), role: "quit" }; | ||
+ return { label: i18n_t("menu_quit-deezer_label"), click: () => { external_electron_namespaceObject.app.isQuiting = true; external_electron_namespaceObject.app.quit(); } }; | ||
} | ||
getReloadOptions() { | ||
return { | ||
@@ -4714,6 +4714,12 @@ module.exports = (function(modules) { | ||
this.window.on("resize", () => { | ||
this.windowState.save(); | ||
@@ -3075,6 +3075,12 @@ | ||
this.isFrameless && this._adjustViewToContentSize(), | ||
this.windowState.save(); | ||
}), | ||
+ this.window.on('close', function(event) { | ||
+ if(!external_electron_.app.isQuiting){ | ||
+ if(!external_electron_namespaceObject.app.isQuiting){ | ||
+ event.preventDefault(); | ||
+ this.hide(); | ||
+ } | ||
+ }), | ||
this.window.once("ready-to-show", () => { | ||
if (windowState.isMaximized) this.window.maximize(); | ||
else if (isPlatform(PLATFORM_WINDOWS)) { | ||
else if (isPlatform(PLATFORM.WINDOWS)) { |
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,12 @@ | ||
diff --git a/build/main.js b/build/main.js | ||
index 18ff27d..ff2a38b 100644 | ||
--- a/build/main.js | ||
+++ b/build/main.js | ||
@@ -104,6 +104,7 @@ | ||
: PLATFORM.UNKNOWN; | ||
} | ||
function getAppIcon() { | ||
+ return "/usr/share/deezer/systray.png"; | ||
let appIcon = ""; | ||
switch (getPlatformName()) { | ||
case PLATFORM.WINDOWS: |