From c91a39097d04042c74c1e4a7850f376a71015303 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 3 Mar 2020 10:00:09 +0000 Subject: [PATCH 1/3] Migrate from deprecated BrowserWindow::isMenuBarAutoHide() --- src/electron-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); From 15a9a3f704e95ac55ed344c4970c8fda7070d991 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 3 Mar 2020 10:02:56 +0000 Subject: [PATCH 2/3] update to electron 8.0.3 for VoiceOver fixes --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d5d88c..dfb49d7 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ }, "build": { "appId": "im.riot.app", - "electronVersion": "8.0.1", + "electronVersion": "8.0.3", "files": [ "package.json", { From 825d90e27bb1f6849036045f031a0ca0a5eebdb1 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 5 Mar 2020 11:12:01 +0000 Subject: [PATCH 3/3] move the setter from the deprecated method also Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/electron-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron-main.js b/src/electron-main.js index 8fac49c..30453eb 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -267,7 +267,7 @@ ipcMain.on('ipcCall', async function(ev, payload) { 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':