Desktop: Make “update is available” dialog box easier to use (#3877)

pull/3978/head
Rory O’Kane 2020-10-22 07:25:06 -04:00 committed by GitHub
parent b737ca7471
commit 5bc25aefce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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;