fix: proper follow "Notification Badge" setting
Co-authored-by: Cookie <52550063+Covkie@users.noreply.github.com>
This commit is contained in:
parent
9521c65cea
commit
9b631e6bed
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue