fix(autoStart): persist Start With System toggle on Windows (#1277)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jacob Luttrull
2026-07-01 16:49:16 +00:00
committed by GitHub
co-authored by Claude Opus 4.8
parent f96f325594
commit 198dfedd5f
+5 -1
View File
@@ -73,7 +73,11 @@ function makeAutoStartLinuxPortal() {
} }
const autoStartWindowsMac: AutoStart = { const autoStartWindowsMac: AutoStart = {
isEnabled: () => app.getLoginItemSettings().openAtLogin, isEnabled: () => {
const { openAtLogin, executableWillLaunchAtLogin } = app.getLoginItemSettings();
// Windows only reports openAtLogin as true when queried with the same args set in enable()
return openAtLogin || executableWillLaunchAtLogin;
},
enable: () => enable: () =>
app.setLoginItemSettings({ app.setLoginItemSettings({
openAtLogin: true, openAtLogin: true,