修复记住播放进度的情况下,使用Scheme URL打开应用播放的歌曲进度没有被重置的问题

This commit is contained in:
lyswhut
2023-02-22 15:43:45 +08:00
parent 60b357e6f9
commit fe7bc924da
4 changed files with 12 additions and 4 deletions
+1
View File
@@ -109,6 +109,7 @@ const handleRestorePlay = async(restorePlayInfo: LX.Player.SavedPlayInfo) => {
if (!musicInfo) return
setImmediate(() => {
if (musicInfo.id != playMusicInfo.musicInfo?.id) return
window.app_event.setProgress(appSetting['player.isSavePlayTime'] ? restorePlayInfo.time : 0, restorePlayInfo.maxTime)
})