0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00
yandex-music-linux/patches/0003-Optional-fix-quit.patch
Yury Shvedov b751cba90b Ship from sed and jq to applying patches
Change-Id: I4739feb75997d1b6f76af4deccb6f8a38e2d1e39
2024-02-09 17:41:32 +03:00

16 lines
580 B
Diff

diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handlers/handleWindowLifecycleEvents.js
index 269d1f6..ff744b4 100644
--- a/main/lib/handlers/handleWindowLifecycleEvents.js
+++ b/main/lib/handlers/handleWindowLifecycleEvents.js
@@ -36,6 +36,7 @@ const handleWindowLifecycleEvents = (window) => {
checkAndUpdateApplicationData(window);
});
window.on('close', (event) => {
+ electron_1.app.quit();
if (!state_js_1.state.willQuit) {
event.preventDefault();
if (window.isFullScreen()) {
--
2.42.0