From 9b631e6bedcfbffaa77b316e389a4d016980bf01 Mon Sep 17 00:00:00 2001 From: Oleh Polisan <39007846+PolisanTheEasyNick@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:59:26 +0300 Subject: [PATCH] fix: proper follow "Notification Badge" setting Co-authored-by: Cookie <52550063+Covkie@users.noreply.github.com> --- 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 3fd5adc..10e5689 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 > 0) { + if (iconName === "icon" && lastBadgeCount !== 0) { var trayImage: NativeImage; if (isCustomIcon("icon")) { trayImage = nativeImage.createFromPath(join(ICONS_DIR, "icon_custom.png"));