From 75750ad38d851eb898e68f83675cf50dd15bad65 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Thu, 11 Apr 2024 13:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=81=E9=9D=A2=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=BA=8B=E4=BB=B6=E5=9C=A8=E5=B0=81=E9=9D=A2=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=9B=B8=E5=90=8C=E6=97=B6=E4=BB=8D=E7=84=B6=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/core/player/action.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/core/player/action.ts b/src/renderer/core/player/action.ts index 615772a52a..a83e61542c 100644 --- a/src/renderer/core/player/action.ts +++ b/src/renderer/core/player/action.ts @@ -1,5 +1,5 @@ import { isEmpty, setPause, setPlay, setResource, setStop } from '@renderer/plugins/player' -import { isPlay, playedList, playInfo, playMusicInfo, tempPlayList } from '@renderer/store/player/state' +import { isPlay, playedList, playInfo, playMusicInfo, tempPlayList, musicInfo as _musicInfo } from '@renderer/store/player/state' import { getList, clearPlayedList, @@ -148,7 +148,7 @@ const handleRestorePlay = async(restorePlayInfo: LX.Player.SavedPlayInfo) => { void getPicPath({ musicInfo, listId: playMusicInfo.listId }).then((url: string) => { - if (musicInfo.id != playMusicInfo.musicInfo?.id) return + if (musicInfo.id != playMusicInfo.musicInfo?.id || url == _musicInfo.pic) return setMusicInfo({ pic: url }) window.app_event.picUpdated() }).catch(_ => _) @@ -198,7 +198,7 @@ const handlePlay = () => { setMusicUrl(musicInfo) void getPicPath({ musicInfo, listId: playMusicInfo.listId }).then((url: string) => { - if (musicInfo.id != playMusicInfo.musicInfo?.id) return + if (musicInfo.id != playMusicInfo.musicInfo?.id || url == _musicInfo.pic) return setMusicInfo({ pic: url }) window.app_event.picUpdated() }).catch(_ => _)