summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-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 db26120562..8845422e6b 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -88,7 +88,7 @@ const GUI_VERSION = app.getVersion().replace('.0', '');
/// Mirrors the beta check regex in the daemon. Matches only well formed beta versions
const IS_BETA = /^(\d{4})\.(\d+)-beta(\d+)$/;
-const VERSION_CHECK_DISABLED = process.env.DISABLE_VERSION_CHECK === '1';
+const UPDATE_NOTIFICATION_DISABLED = process.env.MULLVAD_DISABLE_UPDATE_NOTIFICATION === '1';
const SANDBOX_DISABLED = app.commandLine.hasSwitch('no-sandbox');
@@ -590,7 +590,7 @@ class ApplicationMain {
}
// fetch the latest version info in background
- if (!VERSION_CHECK_DISABLED) {
+ if (!UPDATE_NOTIFICATION_DISABLED) {
void this.fetchLatestVersion();
}
@@ -933,7 +933,7 @@ class ApplicationMain {
}
private setLatestVersion(latestVersionInfo: IAppVersionInfo) {
- if (VERSION_CHECK_DISABLED) {
+ if (UPDATE_NOTIFICATION_DISABLED) {
return;
}