fix: proper follow "Notification Badge" setting

Co-authored-by: Cookie <52550063+Covkie@users.noreply.github.com>
This commit is contained in:
Oleh Polisan 2024-07-01 21:59:26 +03:00 committed by GitHub
parent 9521c65cea
commit 9b631e6bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"));