mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-08 18:08:33 +00:00
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:
committed by
GitHub
parent
481497e384
commit
baa9b5f7ab
@@ -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
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user