fix: macOS docker badge range

This commit is contained in:
DIYgod
2024-07-08 20:00:30 +08:00
parent d134be201d
commit e829b05dec
+5 -1
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 }) => {