move the setter from the deprecated method also

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-03-05 11:12:01 +00:00
parent 15a9a3f704
commit 825d90e27b

View File

@ -267,7 +267,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
break; break;
case 'setAutoHideMenuBarEnabled': case 'setAutoHideMenuBarEnabled':
store.set('autoHideMenuBar', args[0]); store.set('autoHideMenuBar', args[0]);
global.mainWindow.setAutoHideMenuBar(args[0]); global.mainWindow.autoHideMenuBar = Boolean(args[0]);
global.mainWindow.setMenuBarVisibility(!args[0]); global.mainWindow.setMenuBarVisibility(!args[0]);
break; break;
case 'getAppVersion': case 'getAppVersion':