From 9521c65cea3bf51885c8f4fd2206be1376b0311d Mon Sep 17 00:00:00 2001 From: Oleh Polisan Date: Mon, 1 Jul 2024 15:28:59 +0300 Subject: [PATCH] badge: show mentions instead of unreads --- src/main/tray.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/tray.ts b/src/main/tray.ts index 8db6157..3fd5adc 100644 --- a/src/main/tray.ts +++ b/src/main/tray.ts @@ -34,7 +34,7 @@ export async function setTrayIcon(iconName: string) { if (!Icons.has(iconName)) return; // if need to set main icon then check whether there is need of notif badge - if (iconName === "icon" && lastBadgeCount === -1) { + if (iconName === "icon" && lastBadgeCount > 0) { var trayImage: NativeImage; if (isCustomIcon("icon")) { trayImage = nativeImage.createFromPath(join(ICONS_DIR, "icon_custom.png"));