From e829b05dec77340b7eb6abb77b3022960e577de1 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 8 Jul 2024 20:00:30 +0800 Subject: [PATCH] fix: macOS docker badge range --- src/main/tipc.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }) => {