修复随机播放模式下使用稍后播放功能播放我的列表的歌曲时,切换下一曲永远是当前歌曲的问题(#1147)

This commit is contained in:
lyswhut
2023-01-18 15:56:05 +08:00
parent 82bea640c4
commit 68d847aca5
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ const handleRestorePlay = async(restorePlayInfo: LX.Player.SavedPlayInfo) => {
setAllStatus(window.i18n.t('lyric__load_error'))
})
if (appSetting['player.togglePlayMethod'] == 'random') addPlayedList({ ...playMusicInfo as LX.Player.PlayMusicInfo })
if (appSetting['player.togglePlayMethod'] == 'random' && !playMusicInfo.isTempPlay) addPlayedList({ ...playMusicInfo as LX.Player.PlayMusicInfo })
}
@@ -160,7 +160,7 @@ const handlePlay = () => {
clearLoadTimeout()
if (appSetting['player.togglePlayMethod'] == 'random' && playMusicInfo.listId) addPlayedList({ ...(playMusicInfo as LX.Player.PlayMusicInfo) })
if (appSetting['player.togglePlayMethod'] == 'random' && !playMusicInfo.isTempPlay) addPlayedList({ ...(playMusicInfo as LX.Player.PlayMusicInfo) })
setMusicUrl(musicInfo)