feat: show unseen count in macos dock

Resolves #93
This commit is contained in:
talksik
2026-03-30 13:53:50 -07:00
parent 65ea901626
commit a5e1ea1acf
5 changed files with 46 additions and 0 deletions
+8
View File
@@ -163,6 +163,14 @@ async function fetchLinkMetadata(url: string): Promise<LinkMetadata | null> {
}
}
// --- Dock badge ---
ipcMain.on('app:set-dock-badge', (_event, count: number) => {
if (process.platform === 'darwin') {
app.dock?.setBadge(count > 0 ? String(count) : '');
}
});
ipcMain.handle('link:fetch-metadata', async (_event, url: string) => {
if (typeof url !== 'string') return null;
try {