Browse Source

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.
pull/9368/head
Travis Ralston 3 years ago
parent
commit
f36a24fef0
  1. 2
      electron_app/src/electron-main.js

2
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]) {

Loading…
Cancel
Save