mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 05:36:00 +00:00
fixed condition
This commit is contained in:
@@ -171,7 +171,7 @@ ipcMain.on('update-commands', async (event, arg) => {
|
||||
const command = commands[key];
|
||||
|
||||
// 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);
|
||||
|
||||
Menu.setApplicationMenu(mainMenu);
|
||||
|
||||
Reference in New Issue
Block a user