From 836828636cc617b6264ab7168941172fbf38e9b2 Mon Sep 17 00:00:00 2001 From: altair823 Date: Thu, 7 May 2026 02:30:29 +0900 Subject: [PATCH] =?UTF-8?q?feat(v027):=20AutostartSection=20=EC=9E=AC?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=EB=B2=84=ED=8A=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/settings/AutostartSection.tsx | 16 ++++++++++++++++ tests/unit/AutostartSection.test.tsx | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/renderer/inbox/components/settings/AutostartSection.tsx b/src/renderer/inbox/components/settings/AutostartSection.tsx index 9e27e4e..509a686 100644 --- a/src/renderer/inbox/components/settings/AutostartSection.tsx +++ b/src/renderer/inbox/components/settings/AutostartSection.tsx @@ -18,6 +18,14 @@ export function AutostartSection(): React.ReactElement { setData(r); } + // Task 24 — 현재 openAtLogin 값으로 다시 setLoginItemSettings 호출 → mismatch 복구. + // (예: registry 누락된 채로 withArgs.openAtLogin=true 인 경우 등.) + async function onReregister(): Promise { + if (!data) return; + const r = await inboxApi.setAutostart(data.openAtLogin); + setData(r); + } + if (data === null) { return
로딩 중...
; } @@ -40,6 +48,14 @@ export function AutostartSection(): React.ReactElement { ⚠️ 등록 상태 불일치 감지 — 진단 정보 확인 후 재등록을 시도하세요. )} +
+ +