Skip to content

Commit

Permalink
v5.0.1-a.0
Browse files Browse the repository at this point in the history
  • Loading branch information
siphomateke committed Jul 1, 2021
1 parent b4a9cbd commit dfb2df4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 151 deletions.
139 changes: 0 additions & 139 deletions 0001-MPRIS-interface.patch

This file was deleted.

1 change: 0 additions & 1 deletion deezer
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 "$@"
4 changes: 2 additions & 2 deletions menu-bar.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/build/main.js b/build/main.js
index 188b186..21b0b54 100644
index ff2a38b..823a767 100644
--- a/build/main.js
+++ b/build/main.js
@@ -4537,6 +4537,8 @@ module.exports = (function (modules) {
@@ -3062,6 +3062,8 @@
mainView.setAutoResize({ width: !0, height: !0 });
} else this.appService.setWindow(this.window, void 0);
this.appService.setUserAgent(),
Expand Down
18 changes: 9 additions & 9 deletions quit.patch
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)) {
12 changes: 12 additions & 0 deletions systray.patch
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:

0 comments on commit dfb2df4

Please sign in to comment.