mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-18 10:06:33 +00:00
Initialise the IDE updater even when 'checkForUpdates' preference is false (#1490)
This commit is contained in:
parent
8380c82028
commit
96cf09d594
@ -37,16 +37,17 @@ export class CheckForIDEUpdates extends Contribution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override onReady(): void {
|
override onReady(): void {
|
||||||
const checkForUpdates = this.preferences['arduino.checkForUpdates'];
|
|
||||||
if (!checkForUpdates) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.updater
|
this.updater
|
||||||
.init(
|
.init(
|
||||||
this.preferences.get('arduino.ide.updateChannel'),
|
this.preferences.get('arduino.ide.updateChannel'),
|
||||||
this.preferences.get('arduino.ide.updateBaseUrl')
|
this.preferences.get('arduino.ide.updateBaseUrl')
|
||||||
)
|
)
|
||||||
.then(() => this.updater.checkForUpdates(true))
|
.then(() => {
|
||||||
|
if (!this.preferences['arduino.checkForUpdates']) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return this.updater.checkForUpdates(true);
|
||||||
|
})
|
||||||
.then(async (updateInfo) => {
|
.then(async (updateInfo) => {
|
||||||
if (!updateInfo) return;
|
if (!updateInfo) return;
|
||||||
const versionToSkip = await this.localStorage.getData<string>(
|
const versionToSkip = await this.localStorage.getData<string>(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user