fix(patch): update closing behaviour w/ option
This commit is contained in:
parent
a652d438e7
commit
9d6ad6fd88
|
@ -1,16 +1,29 @@
|
|||
From ef715c38d754bbed026a4e6c3e9cae0180eeeb4b Mon Sep 17 00:00:00 2001
|
||||
From: josselinonduty <contact@josselinonduty.fr>
|
||||
Date: Sun, 19 Jan 2025 23:27:32 +0100
|
||||
Subject: [PATCH] fix: reduce to systray on close with respect to execution
|
||||
option
|
||||
|
||||
---
|
||||
build/main.js | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/build/main.js b/build/main.js
|
||||
index 5066eef..46b04c5 100644
|
||||
index 60117e3..9ea7c18 100644
|
||||
--- a/build/main.js
|
||||
+++ b/build/main.js
|
||||
@@ -3083,7 +3083,10 @@
|
||||
@@ -3037,7 +3037,10 @@
|
||||
this._adjustViewToContentSize(),
|
||||
mainView.setAutoResize({ width: !0, height: !0 });
|
||||
} else this.appService.setWindow(this.window, void 0);
|
||||
- if ((this.appService.setUserAgent(), isPlatform(PLATFORM.DARWIN))) {
|
||||
+ if (
|
||||
+ (this.appService.setUserAgent(), isPlatform(PLATFORM.LINUX))
|
||||
+ && !process.argv.some(arg => arg === '--disable-systray')
|
||||
+ (this.appService.setUserAgent(), isPlatform(PLATFORM.LINUX))
|
||||
+ && !process.argv.some(arg => arg === '--disable-systray')
|
||||
+ ) {
|
||||
let isQuitting = !1;
|
||||
external_electron_namespaceObject.app.on(
|
||||
"before-quit",
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue