mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user