mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
fixed condition
This commit is contained in:
@@ -171,7 +171,7 @@ ipcMain.on('update-commands', async (event, arg) => {
|
|||||||
const command = commands[key];
|
const command = commands[key];
|
||||||
|
|
||||||
// rebuild menu
|
// rebuild menu
|
||||||
if (menu.label != command.text || (menu.accelerator != command.keyText && global.TRANSLATION_DATA)) {
|
if (global.TRANSLATION_DATA && (menu.label != command.text || menu.accelerator != command.keyText)) {
|
||||||
mainMenu = buildMenu(isModalOpened || !!dbgatePage);
|
mainMenu = buildMenu(isModalOpened || !!dbgatePage);
|
||||||
|
|
||||||
Menu.setApplicationMenu(mainMenu);
|
Menu.setApplicationMenu(mainMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user