ELECTRON-718: fix cancel button issue on japanese text

If we don't specify the cancel id, cancel action doesn't work in the japanese language. So, we need to pass the cancelId in the dialog options
This commit is contained in:
Vishwas Shashidhar 2018-08-31 16:42:41 +05:30
parent d6247c4158
commit 5cdca33a09

View File

@ -548,7 +548,8 @@ function titleBarActions(app) {
type: 'question',
title: i18n.getMessageFor('Relaunch Application'),
message: i18n.getMessageFor('Updating Title bar style requires Symphony to relaunch'),
buttons: [i18n.getMessageFor('Relaunch'), i18n.getMessageFor('Cancel')]
buttons: [i18n.getMessageFor('Relaunch'), i18n.getMessageFor('Cancel')],
cancelId: 1
};
electron.dialog.showMessageBox(electron.BrowserWindow.getFocusedWindow(), options, function (index) {
if (index === 0) {