fix: macOS docker badge range

This commit is contained in:
DIYgod 2024-07-08 20:00:30 +08:00
parent d134be201d
commit e829b05dec
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,11 @@ export const router = {
}),
),
setMacOSBadge: t.procedure.input<number>().action(async ({ input }) => {
app.setBadgeCount(input)
if (app.dock) {
app.dock.setBadge(input.toString())
} else {
app.setBadgeCount(input)
}
}),
saveImage: t.procedure.input<string>().action(async ({ input }) => {