remove redundant function

This commit is contained in:
Kylie C 2024-07-04 14:12:15 -04:00
parent bd08e185f3
commit 4bd418dd6f

View file

@ -30,7 +30,6 @@ export function setBadgeCount(count: number) {
break; break;
} }
function emitDBusBadge(count: number, visible: boolean) {
execFile ("gdbus", [ execFile ("gdbus", [
"emit", "emit",
"--session", "--session",
@ -39,10 +38,9 @@ export function setBadgeCount(count: number) {
"--signal", "--signal",
"com.canonical.Unity.LauncherEntry.Update", "com.canonical.Unity.LauncherEntry.Update",
"application://vesktop.desktop", "application://vesktop.desktop",
`{\'count\': <int64 ${count}>, \'count-visible\': <${visible}>}` `{\'count\': <int64 ${count === -1 ? 0 : count}>, \'count-visible\': <${count !== 0}>}`
]); ]);
}
emitDBusBadge(count === -1 ? 0 : count, count !== 0);
break; break;
case "darwin": case "darwin":
if (count === 0) { if (count === 0) {