remove checkForUpdates from login screen

This commit is contained in:
zadam
2022-07-20 00:11:12 +02:00
parent 0e41f9d1bc
commit d825a1a45a
3 changed files with 7 additions and 13 deletions

View File

@@ -157,14 +157,14 @@ export default class GlobalMenuWidget extends BasicWidget {
}
async updateVersionStatus() {
if (options.get("checkForUpdates") == 'true') {
const latestVersion = await this.fetchLatestVersion();
this.updateAvailableWidget.updateVersionStatus(latestVersion);
this.$updateToLatestVersionButton.toggle(latestVersion > glob.triliumVersion);
this.$updateToLatestVersionButton.find(".version-text").text(`Version ${latestVersion} is available, click to download.`);
if (options.get("checkForUpdates") !== 'true') {
return;
}
const latestVersion = await this.fetchLatestVersion();
this.updateAvailableWidget.updateVersionStatus(latestVersion);
this.$updateToLatestVersionButton.toggle(latestVersion > glob.triliumVersion);
this.$updateToLatestVersionButton.find(".version-text").text(`Version ${latestVersion} is available, click to download.`);
}
async fetchLatestVersion() {