mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-24 06:05:09 +00:00
remove redundant function
This commit is contained in:
parent
bd08e185f3
commit
4bd418dd6f
1 changed files with 11 additions and 13 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue