diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-02-07 18:01:09 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-02-09 15:59:58 +0100 |
| commit | 15b6d4840ebbb9b8cc364e59ca32c273dbab0104 (patch) | |
| tree | 81b4de48bff51654c47470a5a8668bed50aab8cb /gui/src/main | |
| parent | ed81bda75445b88337e6d52792a507efc8415661 (diff) | |
| download | mullvadvpn-15b6d4840ebbb9b8cc364e59ca32c273dbab0104.tar.xz mullvadvpn-15b6d4840ebbb9b8cc364e59ca32c273dbab0104.zip | |
Open correct part of download page when running a beta version
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/index.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index b3e2ef0e10..601f58f232 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -861,7 +861,13 @@ class ApplicationMain { } private setLatestVersion(latestVersionInfo: IAppVersionInfo) { - this.upgradeVersion = latestVersionInfo; + const suggestedIsBeta = + latestVersionInfo.suggestedUpgrade !== undefined && + IS_BETA.test(latestVersionInfo.suggestedUpgrade); + this.upgradeVersion = { + ...latestVersionInfo, + suggestedIsBeta, + }; // notify user to update the app if it became unsupported const notificationProviders = [ @@ -869,9 +875,11 @@ class ApplicationMain { supported: latestVersionInfo.supported, consistent: this.currentVersion.isConsistent, suggestedUpgrade: latestVersionInfo.suggestedUpgrade, + suggestedIsBeta, }), new UpdateAvailableNotificationProvider({ suggestedUpgrade: latestVersionInfo.suggestedUpgrade, + suggestedIsBeta, }), ]; const notificationProvider = notificationProviders.find((notificationProvider) => |
