From 644bc47f8a8266d5cc2bddc37cba95c396ddbd9b Mon Sep 17 00:00:00 2001 From: Francesco Spissu Date: Wed, 20 Jul 2022 15:12:25 +0200 Subject: [PATCH] primary action on the right of the notification --- .../browser/boards/boards-auto-installer.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arduino-ide-extension/src/browser/boards/boards-auto-installer.ts b/arduino-ide-extension/src/browser/boards/boards-auto-installer.ts index 88adcf0f0..845f97b59 100644 --- a/arduino-ide-extension/src/browser/boards/boards-auto-installer.ts +++ b/arduino-ide-extension/src/browser/boards/boards-auto-installer.ts @@ -237,6 +237,16 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution { ); const actions: AutoInstallPromptActions = [ + { + key: manualInstall, + handler: () => { + this.boardsManagerFrontendContribution + .openView({ reveal: true }) + .then((widget) => + widget.refresh(candidate.name.toLocaleLowerCase()) + ); + }, + }, { isAcceptance: true, key: yes, @@ -250,16 +260,6 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution { }); }, }, - { - key: manualInstall, - handler: () => { - this.boardsManagerFrontendContribution - .openView({ reveal: true }) - .then((widget) => - widget.refresh(candidate.name.toLocaleLowerCase()) - ); - }, - }, ]; return actions;