diff --git a/src/main/tipc.ts b/src/main/tipc.ts index f115d3ce1..3c83732bb 100644 --- a/src/main/tipc.ts +++ b/src/main/tipc.ts @@ -171,7 +171,11 @@ export const router = { }), ), setMacOSBadge: t.procedure.input().action(async ({ input }) => { - app.setBadgeCount(input) + if (app.dock) { + app.dock.setBadge(input.toString()) + } else { + app.setBadgeCount(input) + } }), saveImage: t.procedure.input().action(async ({ input }) => {