feat: add taskbar flashing on new notifications (#1209)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
futamebore
2025-12-12 22:23:13 +01:00
committed by GitHub
co-authored by V
parent 98b0ba85a3
commit da8e8f52ab
7 changed files with 48 additions and 1 deletions
+5
View File
@@ -142,6 +142,11 @@ handle(IpcEvents.SELECT_VENCORD_DIR, async (_e, value?: null) => {
handle(IpcEvents.SET_BADGE_COUNT, (_, count: number) => setBadgeCount(count));
handle(IpcEvents.FLASH_FRAME, (_, flag: boolean) => {
if (!mainWin || mainWin.isDestroyed() || (flag && mainWin.isFocused())) return;
mainWin.flashFrame(flag);
});
handle(IpcEvents.CLIPBOARD_COPY_IMAGE, async (_, buf: ArrayBuffer, src: string) => {
clipboard.write({
html: `<img src="${src.replaceAll('"', '\\"')}">`,