Merge pull request #38 from vector-im/t3chguy/depr8

Electron 8 changes. Deprecations. Updates.
This commit is contained in:
Michael Telatynski 2020-03-09 18:00:22 +00:00 committed by GitHub
commit 1dd7c168cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@
},
"build": {
"appId": "im.riot.app",
"electronVersion": "8.0.2",
"electronVersion": "8.0.3",
"files": [
"package.json",
{

View File

@ -264,11 +264,11 @@ 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]);
global.mainWindow.setAutoHideMenuBar(args[0]);
global.mainWindow.autoHideMenuBar = Boolean(args[0]);
global.mainWindow.setMenuBarVisibility(!args[0]);
break;
case 'getAppVersion':