diff options
author | Sibren Vasse | 2021-05-05 22:29:59 +0200 |
---|---|---|
committer | Sibren Vasse | 2021-05-05 22:29:59 +0200 |
commit | 7c2f393e6cc8dc7ee8ec116a47a4a1696564ee12 (patch) | |
tree | c228a56b2c77715441c6ba7673cd0bf140323de9 /quit.patch | |
parent | 9349bd863372ce1ee7c086daf168d9095ad9ec6c (diff) | |
download | aur-7c2f393e6cc8dc7ee8ec116a47a4a1696564ee12.tar.gz |
v5.0.1-a.0
Diffstat (limited to 'quit.patch')
-rw-r--r-- | quit.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/quit.patch b/quit.patch index 880a1311b050..3f53ce7cb53a 100644 --- a/quit.patch +++ b/quit.patch @@ -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)) { |