remove if horror

This commit is contained in:
Cookie 2024-06-27 19:53:51 -04:00 committed by GitHub
parent cdce21e7eb
commit 6af88e0432
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,15 +42,7 @@ export function setBadgeCount(count: number) {
`{\'count\': <int64 ${count}>, \'count-visible\': <${visible}>}` `{\'count\': <int64 ${count}>, \'count-visible\': <${visible}>}`
]); ]);
} }
if (count === 0) { emitDBusBadge(count === -1 ? 0 : count, count !== 0);
emitDBusBadge(count, false);
break;
}
if (count === -1) {
emitDBusBadge(0, true);
break;
}
emitDBusBadge(count, true);
break; break;
case "darwin": case "darwin":
if (count === 0) { if (count === 0) {