diff options
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) => |
