feat(v027): settings:autostart-state IPC 핸들러
This commit is contained in:
@@ -8,6 +8,7 @@ import type { ExportService } from '../services/ExportService.js';
|
||||
import type { ImportService } from '../services/ImportService.js';
|
||||
import type { SyncService } from '../services/SyncService.js';
|
||||
import type { TelemetryService } from '../services/TelemetryService.js';
|
||||
import { collectAutostartState } from '../services/AutostartDiagnostic.js';
|
||||
import { getInboxWindow as getInboxWindowSingleton } from '../windows/inboxWindow.js';
|
||||
|
||||
/**
|
||||
@@ -58,6 +59,13 @@ export function registerSettingsApi(deps?: SettingsIpcDeps): void {
|
||||
return { openAtLogin: r.openAtLogin };
|
||||
});
|
||||
|
||||
// v0.2.7 F12 deeper fix (Task 21) — 진단 정보 포함된 정식 autostart 상태 조회.
|
||||
// Task 22 에서 옛 'settings:get-autostart' 를 제거하고 본 채널로 통일 예정.
|
||||
ipcMain.handle('settings:autostart-state', async () => {
|
||||
const diag = await collectAutostartState();
|
||||
return { openAtLogin: diag.withArgs.openAtLogin, diagnostic: diag };
|
||||
});
|
||||
|
||||
// v0.2.7 정보 섹션 (Task 11) — 트레이 showAboutDialog 의 detail 형식 그대로 (clipboard 일관성).
|
||||
// 트레이 showAboutDialog 자체 제거는 Task 25 (Phase 6 cleanup) — 본 task 는 추가만.
|
||||
ipcMain.handle('settings:get-app-info', () => ({
|
||||
|
||||
Reference in New Issue
Block a user