Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0f82e91

Browse files
authoredAug 26, 2021
[ATL-1570] Install core notification not to appear on board unplug (#485)
1 parent 7d5381b commit 0f82e91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎arduino-ide-extension/src/browser/boards/boards-auto-installer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution {
4444
}
4545

4646
protected ensureCoreExists(config: BoardsConfig.Config): void {
47-
const { selectedBoard } = config;
47+
const { selectedBoard, selectedPort } = config;
4848
if (
4949
selectedBoard &&
50+
selectedPort &&
5051
!this.notifications.find((board) => Board.sameAs(board, selectedBoard))
5152
) {
5253
this.notifications.push(selectedBoard);

0 commit comments

Comments
 (0)
Please sign in to comment.