Skip to content

Commit

Permalink
Primary action to the right of the notification box (arduino#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
francescospissu authored Jul 20, 2022
1 parent 71d5a15 commit 5087ff0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions arduino-ide-extension/src/browser/boards/boards-auto-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit 5087ff0

Please sign in to comment.