mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-1408: fix toggle dev tools menu item (#737)
- Destructure the config object correctly to get the devToolsEnabled config value in app menu component
This commit is contained in:
committed by
GitHub
parent
54994590b5
commit
e5d86dc6d7
@@ -385,7 +385,7 @@ export class AppMenu {
|
||||
label: i18n.t('Toggle Developer Tools')(),
|
||||
accelerator: isMac ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||
click(_item, focusedWindow) {
|
||||
const devToolsEnabled = config.getGlobalConfigFields([ 'devToolsEnabled' ]);
|
||||
const { devToolsEnabled } = config.getGlobalConfigFields([ 'devToolsEnabled' ]);
|
||||
if (!focusedWindow || !windowExists(focusedWindow)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user