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