Skip to content

Commit

Permalink
UI: Use modal BitBake settings error notification
Browse files Browse the repository at this point in the history
The new look is easier to read when the error message is long.
It is a bit more intrusive however.
  • Loading branch information
deribaucourt committed Dec 6, 2023
1 parent 7e49811 commit a21154e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/ui/ClientNotificationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export class ClientNotificationManager {
showBitbakeError (message?: string): void {
if (!this.checkIsNeverShowAgain('custom/bitbakeSettingsError')) {
void window.showErrorMessage(
'BitBake could not be configured and started. To enable advanced Bitbake features, please configure the Bitbake extension.\n\n' + message,
'BitBake could not be configured and started. To enable advanced Bitbake features, please configure the Bitbake extension.',
{ detail: message, modal: true },
'Open Settings',
'Close',
'Never Show Again'
'Don\'t show again'
)
.then((item) => {
if (item === 'Open Settings') {
void commands.executeCommand('workbench.action.openWorkspaceSettings', '@ext:yocto-project.yocto-bitbake')
} else if (item === 'Never Show Again') {
} else if (item === 'Don\'t show again') {
void this.neverShowAgain('custom/bitbakeSettingsError')
}
})
Expand Down

0 comments on commit a21154e

Please sign in to comment.