Commit c436769 1 parent b8f1d8a commit c436769 Copy full SHA for c436769
File tree 2 files changed +6
-1
lines changed
arduino-ide-extension/src
electron-main/ide-updater
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
} from '../../common/protocol/ide-updater' ;
8
8
import { IDEUpdaterDialog } from '../dialogs/ide-updater/ide-updater-dialog' ;
9
9
import { Contribution } from './contribution' ;
10
+ import { VersionWelcomeDialog } from '../dialogs/version-welcome-dialog' ;
10
11
11
12
@injectable ( )
12
13
export class CheckForIDEUpdates extends Contribution {
@@ -16,6 +17,9 @@ export class CheckForIDEUpdates extends Contribution {
16
17
@inject ( IDEUpdaterDialog )
17
18
private readonly updaterDialog : IDEUpdaterDialog ;
18
19
20
+ @inject ( VersionWelcomeDialog )
21
+ private readonly welcomeDialog : VersionWelcomeDialog ;
22
+
19
23
@inject ( LocalStorageService )
20
24
private readonly localStorage : LocalStorageService ;
21
25
@@ -49,6 +53,7 @@ export class CheckForIDEUpdates extends Contribution {
49
53
return this . updater . checkForUpdates ( true ) ;
50
54
} )
51
55
. then ( async ( updateInfo ) => {
56
+ this . welcomeDialog . open ( ) ;
52
57
if ( ! updateInfo ) return ;
53
58
const versionToSkip = await this . localStorage . getData < string > (
54
59
SKIP_IDE_VERSION
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class IDEUpdaterImpl implements IDEUpdater {
62
62
await this . updater . checkForUpdates ( ) ;
63
63
64
64
this . cancellationToken = cancellationToken ;
65
- if ( this . updater . currentVersion . compare ( updateInfo . version ) === - 1 ) {
65
+ if ( true ) {
66
66
/*
67
67
'latest.txt' points to the latest changelog that has been generated by the CI,
68
68
so we need to make a first GET request to get the filename of the changelog
You can’t perform that action at this time.
0 commit comments