Skip to content

Commit

Permalink
fix: update Updater button names to fit in message box (podman-deskto…
Browse files Browse the repository at this point in the history
…p#9497)

* fix: update Updater button names to fit in message box
Signed-off-by: Sonia Sandler <[email protected]>
  • Loading branch information
SoniaSandler authored Oct 21, 2024
1 parent 63001e3 commit d0fc6a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/main/src/plugin/updater.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ describe('expect update command to depends on context', async () => {

expect(messageBoxMock.showMessageBox).toHaveBeenCalledWith({
cancelId: 2,
buttons: ['Update now', 'View release notes', 'Remind me later', 'Do not show again'],
buttons: ['Update now', `What's new`, 'Remind me later', `Don't show again`],
message:
'A new version v@debug-next of Podman Desktop is available. Do you want to update your current version v@debug?',
title: 'Update Available now',
Expand All @@ -435,7 +435,7 @@ describe('expect update command to depends on context', async () => {

expect(messageBoxMock.showMessageBox).toHaveBeenCalledWith({
cancelId: 2,
buttons: ['Update now', 'View release notes', 'Cancel'],
buttons: ['Update now', `What's new`, 'Cancel'],
message:
'A new version v@debug-next of Podman Desktop is available. Do you want to update your current version v@debug?',
title: 'Update Available now',
Expand Down
4 changes: 2 additions & 2 deletions packages/main/src/plugin/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ export class Updater {

let buttons: string[];
if (context === 'startup') {
buttons = ['Update now', 'View release notes', 'Remind me later', 'Do not show again'];
buttons = ['Update now', `What's new`, 'Remind me later', `Don't show again`];
} else {
buttons = ['Update now', 'View release notes', 'Cancel'];
buttons = ['Update now', `What's new`, 'Cancel'];
}

const result = await this.messageBox.showMessageBox({
Expand Down

0 comments on commit d0fc6a3

Please sign in to comment.