diff --git a/src/main/index.ts b/src/main/index.ts index f5c0d56..14a16c1 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -359,7 +359,11 @@ app.whenReady().then(async () => { } }, /* runOllamaRecheck */ () => { void health.runOnce({ manual: true }); }, - /* runRetryAllFailed */ () => { void capture.retryAllFailed(); } + /* runRetryAllFailed */ () => { void capture.retryAllFailed(); }, + /* runOpenOllamaSettings */ () => { + const win = getInboxWindow(); + if (win) win.webContents.send('inbox:openOllamaSettings'); + } ); // F4-C 환경 앵커 — tray tooltip + 메뉴 첫 항목을 오늘 KST 캡처 수로 갱신. diff --git a/src/main/tray.ts b/src/main/tray.ts index 9d7e8bc..38af617 100644 --- a/src/main/tray.ts +++ b/src/main/tray.ts @@ -15,6 +15,7 @@ let _ollamaOk = true; let _todayCount = 0; let _runRetryAllFailed: () => void = () => {}; let _failedCount = 0; +let _runOpenOllamaSettings: () => void = () => {}; function buildMenu() { const items: MenuItemConstructorOptions[] = []; @@ -41,6 +42,7 @@ function buildMenu() { enabled: _failedCount > 0, click: _runRetryAllFailed }); + items.push({ label: 'Ollama 설정...', click: () => _runOpenOllamaSettings() }); if (app.isPackaged) { const { openAtLogin } = app.getLoginItemSettings(); items.push({ @@ -71,7 +73,8 @@ export function createTray( runSync: () => void, runExportTelemetry: () => void, runOllamaRecheck: () => void, - runRetryAllFailed: () => void + runRetryAllFailed: () => void, + runOpenOllamaSettings: () => void ): TrayType { _showInbox = showInbox; _showCapture = showCapture; @@ -82,6 +85,7 @@ export function createTray( _runExportTelemetry = runExportTelemetry; _runOllamaRecheck = runOllamaRecheck; _runRetryAllFailed = runRetryAllFailed; + _runOpenOllamaSettings = runOpenOllamaSettings; const icon = nativeImage.createEmpty(); tray = new Tray(icon); tray.setToolTip(`Inkling — 오늘 ${_todayCount}`);