File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
arduino-ide-extension/src/browser/contributions Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,17 @@ export class CheckForIDEUpdates extends Contribution {
3737 }
3838
3939 override onReady ( ) : void {
40- const checkForUpdates = this . preferences [ 'arduino.checkForUpdates' ] ;
41- if ( ! checkForUpdates ) {
42- return ;
43- }
4440 this . updater
4541 . init (
4642 this . preferences . get ( 'arduino.ide.updateChannel' ) ,
4743 this . preferences . get ( 'arduino.ide.updateBaseUrl' )
4844 )
49- . then ( ( ) => this . updater . checkForUpdates ( true ) )
45+ . then ( ( ) => {
46+ if ( ! this . preferences [ 'arduino.checkForUpdates' ] ) {
47+ return ;
48+ }
49+ return this . updater . checkForUpdates ( true ) ;
50+ } )
5051 . then ( async ( updateInfo ) => {
5152 if ( ! updateInfo ) return ;
5253 const versionToSkip = await this . localStorage . getData < string > (
You can’t perform that action at this time.
0 commit comments