summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/index.ts
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-02-04 10:11:39 +0100
committerOskar Nyberg <oskar@mullvad.net>2020-02-06 16:58:45 +0100
commit9cb69a364bb0f840bf4997969c07e8b2118d5dcc (patch)
tree6884860323530cc2481c36d50173b9d1d871b87b /gui/src/main/index.ts
parent662dcd175380e650bf7dfb06adf7f842a0e8cdce (diff)
downloadmullvadvpn-9cb69a364bb0f840bf4997969c07e8b2118d5dcc.tar.xz
mullvadvpn-9cb69a364bb0f840bf4997969c07e8b2118d5dcc.zip
Enable monochrome icons setting for all platforms
Diffstat (limited to 'gui/src/main/index.ts')
-rw-r--r--gui/src/main/index.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 6663a5574e..4df3b4c7a2 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -319,7 +319,7 @@ class ApplicationMain {
const trayIconController = new TrayIconController(
tray,
'unsecured',
- process.platform === 'darwin' && this.guiSettings.monochromaticIcon,
+ this.guiSettings.monochromaticIcon,
);
this.registerWindowListener(windowController);
@@ -330,10 +330,7 @@ class ApplicationMain {
this.trayIconController = trayIconController;
this.guiSettings.onChange = (newState, oldState) => {
- if (
- process.platform === 'darwin' &&
- oldState.monochromaticIcon !== newState.monochromaticIcon
- ) {
+ if (oldState.monochromaticIcon !== newState.monochromaticIcon) {
if (this.trayIconController) {
this.trayIconController.useMonochromaticIcon = newState.monochromaticIcon;
}