From ecb5451a7d5e7df796e9c5317ac3985b5e4c42e9 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 1 Mar 2021 12:56:07 -0500 Subject: [PATCH] fix: open at login option does not persist --- src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index a6b1465..1c2724c 100644 --- a/src/background.js +++ b/src/background.js @@ -40,7 +40,7 @@ const setupTrayIcon = () => { const handleLaunchOptions = { set: function (obj, prop, value) { - if (prop === "launchOptions") { + if (prop === "openAtLogin") { app.setLoginItemSettings({ openAtLogin: value }); } else { obj[prop] = value;