We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8380c82 commit 96cf09dCopy full SHA for 96cf09d
arduino-ide-extension/src/browser/contributions/check-for-ide-updates.ts
@@ -37,16 +37,17 @@ export class CheckForIDEUpdates extends Contribution {
37
}
38
39
override onReady(): void {
40
- const checkForUpdates = this.preferences['arduino.checkForUpdates'];
41
- if (!checkForUpdates) {
42
- return;
43
- }
44
this.updater
45
.init(
46
this.preferences.get('arduino.ide.updateChannel'),
47
this.preferences.get('arduino.ide.updateBaseUrl')
48
)
49
- .then(() => this.updater.checkForUpdates(true))
+ .then(() => {
+ if (!this.preferences['arduino.checkForUpdates']) {
+ return;
+ }
+ return this.updater.checkForUpdates(true);
50
+ })
51
.then(async (updateInfo) => {
52
if (!updateInfo) return;
53
const versionToSkip = await this.localStorage.getData<string>(
0 commit comments