Automatically check for updates only once (#863)

* Automatically check for updates only once

* set windows version to 2019 on CI
This commit is contained in:
Alberto Iannaccone
2022-02-24 14:04:36 +00:00
committed by GitHub
parent 481497e384
commit baa9b5f7ab
5 changed files with 17 additions and 9 deletions

View File

@@ -282,7 +282,7 @@ export class ArduinoFrontendContribution
this.updaterService.init(
this.arduinoPreferences.get('arduino.ide.updateChannel')
);
this.updater.checkForUpdates().then(async (updateInfo) => {
this.updater.checkForUpdates(true).then(async (updateInfo) => {
if (!updateInfo) return;
const versionToSkip = await this.localStorageService.getData<string>(
SKIP_IDE_VERSION

View File

@@ -31,8 +31,8 @@ export class IDEUpdaterCommands implements CommandContribution {
});
}
async checkForUpdates(): Promise<UpdateInfo | void> {
return await this.updater.checkForUpdates();
async checkForUpdates(initialCheck?: boolean): Promise<UpdateInfo | void> {
return await this.updater.checkForUpdates(initialCheck);
}
async downloadUpdate(): Promise<void> {