From f36a24fef00a199df98bc9bef67a3af14efe566a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 2 Apr 2019 17:59:47 -0600 Subject: [PATCH] Fix autolaunch setting appearing toggled off Fixes https://github.com/vector-im/riot-web/issues/9123 The value used here is a function which returns a promise, not a flag. --- electron_app/src/electron-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 99ddfbd1..e9659070 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -139,7 +139,7 @@ ipcMain.on('ipcCall', async function(ev, payload) { ret = autoUpdater.getFeedURL(); break; case 'getAutoLaunchEnabled': - ret = launcher.isEnabled; + ret = await launcher.isEnabled(); break; case 'setAutoLaunchEnabled': if (args[0]) {