summarylogtreecommitdiffstats
path: root/01-start-hidden-in-tray.patch
blob: 71fd510b3a2df4dad1dda3ad4220f00c1579d25c (plain)
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
From 7e317aa696aa2c1a69f2df0e4d7bb3b3df41d4df Mon Sep 17 00:00:00 2001
From: josselinonduty <contact@josselinonduty.fr>
Date: Mon, 21 Apr 2025 00:37:21 +0900
Subject: [PATCH] fix: reduce to systray on close

Original patch: Dorian Stoll <dorian.stoll@tmsp.io>
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.
---
diff --git a/build/main.js b/build/main.js
index a6317ab..fc1f4fe 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3103,10 +3103,12 @@
                   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());
       }