fix keymap to open hamburger menu

This commit is contained in:
Labhansh Agrawal 2020-06-26 19:34:15 +05:30 committed by Benjamin Staneck
parent 8df05bba2c
commit 7f10453e91

View file

@ -111,8 +111,8 @@ const commands: Record<string, (focusedWindow?: BrowserWindow) => void> = {
installCLI(true);
},
'window:hamburgerMenu': () => {
if (getConfig().showHamburgerMenu) {
Menu.getApplicationMenu()!.popup({x: 15, y: 15});
if (process.platform !== 'darwin' && ['', true].includes(getConfig().showHamburgerMenu)) {
Menu.getApplicationMenu()!.popup({x: 25, y: 22});
}
}
};