mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
Desktop: Make “update is available” dialog box easier to use (#3877)
This commit is contained in:
parent
b737ca7471
commit
5bc25aefce
@ -149,8 +149,10 @@ function checkForUpdates(inBackground, window, logFilePath, options) {
|
||||
|
||||
const result = await dialog.showMessageBox(parentWindow_, {
|
||||
type: 'info',
|
||||
message: `${_('An update is available, do you want to download it now?')}\n\n${_('Your version: %s', packageInfo.version)}\n${_('New version: %s', newVersionString)}${releaseNotes}`,
|
||||
buttons: [_('Yes'), _('No')].concat(truncateReleaseNotes ? [_('Full Release Notes')] : []),
|
||||
message: `${_('An update is available, do you want to download it now?')}`,
|
||||
detail: `${_('Your version: %s', packageInfo.version)}\n${_('New version: %s', newVersionString)}${releaseNotes}`,
|
||||
buttons: [_('Download'), _('Cancel')].concat(truncateReleaseNotes ? [_('Full Release Notes')] : []),
|
||||
cancelId: 1,
|
||||
});
|
||||
|
||||
const buttonIndex = result.response;
|
||||
|
Loading…
Reference in New Issue
Block a user