Discard changes to src/main/appBadge.ts

This commit is contained in:
V 2023-10-25 00:25:04 +02:00 committed by GitHub
parent 6e369b62be
commit ef98415f5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,8 +24,7 @@ let lastIndex: null | number = -1;
export function setBadgeCount(count: number) {
switch (process.platform) {
case "linux":
// used to be if (count === -1)
if (count < 0) count = 0;
if (count === -1) count = 0;
app.setBadgeCount(count);
break;
case "darwin":