diff --git a/src/electron-main.js b/src/electron-main.js index 7350592..8fac49c 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -263,7 +263,7 @@ ipcMain.on('ipcCall', async function(ev, payload) { store.set('minimizeToTray', args[0]); break; case 'getAutoHideMenuBarEnabled': - ret = global.mainWindow.isMenuBarAutoHide(); + ret = global.mainWindow.autoHideMenuBar; break; case 'setAutoHideMenuBarEnabled': store.set('autoHideMenuBar', args[0]);