mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
[ATL-1570] Install core notification not to appear on board unplug (#485)
This commit is contained in:
@@ -44,9 +44,10 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected ensureCoreExists(config: BoardsConfig.Config): void {
|
protected ensureCoreExists(config: BoardsConfig.Config): void {
|
||||||
const { selectedBoard } = config;
|
const { selectedBoard, selectedPort } = config;
|
||||||
if (
|
if (
|
||||||
selectedBoard &&
|
selectedBoard &&
|
||||||
|
selectedPort &&
|
||||||
!this.notifications.find((board) => Board.sameAs(board, selectedBoard))
|
!this.notifications.find((board) => Board.sameAs(board, selectedBoard))
|
||||||
) {
|
) {
|
||||||
this.notifications.push(selectedBoard);
|
this.notifications.push(selectedBoard);
|
||||||
|
|||||||
Reference in New Issue
Block a user