blob: aaaf59c21d6eaf4211f7eedc9bf9417b647d4005 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/build/main.js b/build/main.js
index 252236c..2cf4ec1 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3079,10 +3079,14 @@
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();
}
|