From d84e0bad1260ac56f7632fc62fa5d6cdc6ca3766 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Thu, 13 Feb 2020 10:23:13 +0100 Subject: Replace deprecated Electron functions with properties --- src/electron/ipc-api/appIndicator.js | 2 +- src/electron/ipc-api/download.js | 2 +- src/stores/ServicesStore.js | 2 +- src/stores/SettingsStore.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/electron/ipc-api/appIndicator.js b/src/electron/ipc-api/appIndicator.js index e568bf35d..9957ef5fc 100644 --- a/src/electron/ipc-api/appIndicator.js +++ b/src/electron/ipc-api/appIndicator.js @@ -35,7 +35,7 @@ export default (params) => { || process.platform === 'linux') && typeof (args.indicator) === 'number' ) { - app.setBadgeCount(args.indicator); + app.badgeCount = args.indicator; } if (process.platform === 'win32') { diff --git a/src/electron/ipc-api/download.js b/src/electron/ipc-api/download.js index 01b81d388..36eca3c9f 100644 --- a/src/electron/ipc-api/download.js +++ b/src/electron/ipc-api/download.js @@ -22,7 +22,7 @@ export default (params) => { const dl = await download(params.mainWindow, url, { saveAs: true, }); - debug('File saved to', dl.getSavePath()); + debug('File saved to', dl.savePath); } else { const extension = mime.extension(fileOptions.mime); const filename = `${fileOptions.name}.${extension}`; diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index fda18b514..e38b82f03 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js @@ -766,7 +766,7 @@ export default class ServicesStore extends Store { const isMuted = isAppMuted || service.isMuted; if (isAttached) { - service.webview.setAudioMuted(isMuted); + service.webview.audioMuted = isMuted; } }); } diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 428b6342c..da63bc972 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -50,7 +50,7 @@ export default class SettingsStore extends Store { () => { const currentWindow = remote.getCurrentWindow(); currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar); - currentWindow.setAutoHideMenuBar(this.all.app.autohideMenuBar); + currentWindow.autoHideMenuBar = this.all.app.autohideMenuBar; }, ); -- cgit v1.2.3-54-g00ecf