mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-23 01:16:24 -06:00
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:
parent
d6247c4158
commit
5cdca33a09
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user