mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-01 06:28:33 +00:00
Fix board selector synchronization (#1214)
* prevent deselecting a board from the board selctor * orrectly update board selector when baord config changes
This commit is contained in:
committed by
GitHub
parent
1f7c2eb52c
commit
8610332afc
@@ -516,6 +516,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
|
||||
for (let i = 0; !hasChanged && i < availableBoards.length; i++) {
|
||||
const [left, right] = [availableBoards[i], currentAvailableBoards[i]];
|
||||
hasChanged =
|
||||
left.fqbn !== right.fqbn ||
|
||||
!!AvailableBoard.compare(left, right) ||
|
||||
left.selected !== right.selected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user