mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-27 05:06:42 +00:00
[ATL-1570] Install core notification not to appear on board unplug (#485)
This commit is contained in:
parent
7d5381bbde
commit
0f82e91380
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user