-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path01-start-hidden-in-tray.patch
38 lines (35 loc) · 1.28 KB
/
01-start-hidden-in-tray.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 9c19490f706350a2ca8cceae7a998916d21de89b Mon Sep 17 00:00:00 2001
From: josselinonduty <[email protected]>
Date: Sun, 19 Jan 2025 22:59:38 +0100
Subject: [PATCH] fix: reduce to systray on close
Original patch: Dorian Stoll <[email protected]>
This stops the excessive logging, since parts of the app will not run in development
mode anymore. It also stops the app from logging the urls for the mp3 files, which is
against the Deezer TOS.
---
build/main.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/build/main.js b/build/main.js
index c15e2c3..b883a28 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3085,10 +3085,13 @@
finalMinSize[1]
);
}
- isDev(external_electron_namespaceObject.app)
- ? this.window.showInactive()
- : this.window.show(),
- this.thumbar.init();
+ if (!process.argv.some(arg => arg === '--start-in-tray'))
+ isDev(external_electron_namespaceObject.app)
+ ? this.window.showInactive()
+ : this.window.show(),
+ this.thumbar.init();
+ else
+ this.window.hide();
}),
this.appService.enableDevMode();
}
--
2.43.0