Skip to content

Commit 2b09c98

Browse files
silvanocerzafstasi
authored andcommitted
Fix bug selecting board in boards selector dropdown
1 parent ed77196 commit 2b09c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/browser/boards/boards-service-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
472472
let hasChanged = availableBoards.length !== currentAvailableBoards.length;
473473
for (let i = 0; !hasChanged && i < availableBoards.length; i++) {
474474
const [left, right] = [availableBoards[i], currentAvailableBoards[i]];
475-
hasChanged = !!AvailableBoard.compare(left, right);
475+
hasChanged = !!AvailableBoard.compare(left, right) || left.selected !== right.selected;
476476
}
477477
if (hasChanged) {
478478
this._availableBoards = availableBoards;

0 commit comments

Comments
 (0)