mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
move the setter from the deprecated method also
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
15a9a3f704
commit
825d90e27b
@ -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':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user