mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-27 05:06:42 +00:00
Notify user if platform/lib install was successful
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
cb2ef78c0a
commit
c20f832ddf
@ -33,4 +33,9 @@ export class BoardsListWidget extends ListWidget<BoardsPackage> {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async install({ item, version }: { item: BoardsPackage; version: string; }): Promise<void> {
|
||||||
|
await super.install({ item, version });
|
||||||
|
this.messageService.info(`Successfully installed platform ${item.name}:${version}.`, { timeout: 3000 });
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,8 @@ export class LibraryListWidget extends ListWidget<LibraryPackage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof installDependencies === 'boolean') {
|
if (typeof installDependencies === 'boolean') {
|
||||||
return this.service.install({ item, version, installDependencies });
|
await this.service.install({ item, version, installDependencies });
|
||||||
|
this.messageService.info(`Successfully installed library ${item.name}:${version}.`, { timeout: 3000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user