summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/index.ts
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-04-19 08:46:03 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-04-19 13:37:31 +0200
commitec33228db6c8c014a67fccd2cd9f2fae9fc414f6 (patch)
treeca454c39017c2182231f146d93b7f2e79db1aac0 /gui/src/main/index.ts
parent4626da611b7029aad402b251d18b92389a678c76 (diff)
downloadmullvadvpn-ec33228db6c8c014a67fccd2cd9f2fae9fc414f6.tar.xz
mullvadvpn-ec33228db6c8c014a67fccd2cd9f2fae9fc414f6.zip
Refactor command line option handling
Diffstat (limited to 'gui/src/main/index.ts')
-rw-r--r--gui/src/main/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 6492b0865a..f14ed2ee3f 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -27,7 +27,7 @@ import {
import Account, { AccountDelegate, LocaleProvider } from './account';
import { getOpenAtLogin } from './autostart';
import { readChangelog } from './changelog';
-import { SHOULD_DISABLE_RESET_NAVIGATION, SHOULD_SHOW_CHANGES } from './command-line-options';
+import { CommandLineOptions, printCommandLineOptions } from './command-line-options';
import { ConnectionObserver, DaemonRpc, SubscriptionListener } from './daemon-rpc';
import Expectation from './expectation';
import { IpcMainEventChannel } from './ipc-event-channel';
@@ -400,7 +400,7 @@ class ApplicationMain
this,
this.daemonRpc,
SANDBOX_DISABLED,
- SHOULD_DISABLE_RESET_NAVIGATION,
+ CommandLineOptions.disableResetNavigation.match,
);
this.tunnelStateExpectation = new Expectation(async () => {
@@ -720,7 +720,7 @@ class ApplicationMain
windowsSplitTunnelingApplications: this.windowsSplitTunnelingApplications,
macOsScrollbarVisibility: this.macOsScrollbarVisibility,
changelog: this.changelog ?? [],
- forceShowChanges: SHOULD_SHOW_CHANGES,
+ forceShowChanges: CommandLineOptions.showChanges.match,
navigationHistory: this.navigationHistory,
}));