Skip to content

Commit c436769

Browse files
wip: force open modals
1 parent b8f1d8a commit c436769

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arduino-ide-extension/src/browser/contributions/check-for-ide-updates.ts

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from '../../common/protocol/ide-updater';
88
import { IDEUpdaterDialog } from '../dialogs/ide-updater/ide-updater-dialog';
99
import { Contribution } from './contribution';
10+
import { VersionWelcomeDialog } from '../dialogs/version-welcome-dialog';
1011

1112
@injectable()
1213
export class CheckForIDEUpdates extends Contribution {
@@ -16,6 +17,9 @@ export class CheckForIDEUpdates extends Contribution {
1617
@inject(IDEUpdaterDialog)
1718
private readonly updaterDialog: IDEUpdaterDialog;
1819

20+
@inject(VersionWelcomeDialog)
21+
private readonly welcomeDialog: VersionWelcomeDialog;
22+
1923
@inject(LocalStorageService)
2024
private readonly localStorage: LocalStorageService;
2125

@@ -49,6 +53,7 @@ export class CheckForIDEUpdates extends Contribution {
4953
return this.updater.checkForUpdates(true);
5054
})
5155
.then(async (updateInfo) => {
56+
this.welcomeDialog.open();
5257
if (!updateInfo) return;
5358
const versionToSkip = await this.localStorage.getData<string>(
5459
SKIP_IDE_VERSION

arduino-ide-extension/src/electron-main/ide-updater/ide-updater-impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class IDEUpdaterImpl implements IDEUpdater {
6262
await this.updater.checkForUpdates();
6363

6464
this.cancellationToken = cancellationToken;
65-
if (this.updater.currentVersion.compare(updateInfo.version) === -1) {
65+
if (true) {
6666
/*
6767
'latest.txt' points to the latest changelog that has been generated by the CI,
6868
so we need to make a first GET request to get the filename of the changelog

0 commit comments

Comments
 (0)