修复无法关闭状态栏歌曲进度的问题

This commit is contained in:
lyswhut
2021-12-13 14:07:26 +08:00
parent f76f4d9d29
commit 0f5d2189e0
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ export const onGetDesktopLyricInfo = callback => {
export const setTaskBarProgress = (status, mode) => {
rendererSend(NAMES.mainWindow.progress, {
status: status < 0.01 ? 0.01 : status,
status: status < 0 ? status : Math.max(0.01, status),
mode: mode || 'normal',
})
}