From 5087ff08f216773c35de7ecc8300b771eafea4a9 Mon Sep 17 00:00:00 2001 From: Francesco Spissu <94986937+francescospissu@users.noreply.github.com> Date: Wed, 20 Jul 2022 16:49:30 +0200 Subject: [PATCH] Primary action to the right of the notification box (#1234) --- .../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 88adcf0f..845f97b5 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;