From 68d847aca5545beaaa32bfc3909405b36aae48d2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 18 Jan 2023 15:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9A=8F=E6=9C=BA=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=BD=BF=E7=94=A8=E7=A8=8D?= =?UTF-8?q?=E5=90=8E=E6=92=AD=E6=94=BE=E5=8A=9F=E8=83=BD=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E6=88=91=E7=9A=84=E5=88=97=E8=A1=A8=E7=9A=84=E6=AD=8C=E6=9B=B2?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=88=87=E6=8D=A2=E4=B8=8B=E4=B8=80=E6=9B=B2?= =?UTF-8?q?=E6=B0=B8=E8=BF=9C=E6=98=AF=E5=BD=93=E5=89=8D=E6=AD=8C=E6=9B=B2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88#1147=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/core/player/action.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 7ac7ffdb..878e2b2b 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -3,3 +3,4 @@ - 修复声音输出设备更改时后的自动暂停播放设置无效的问题 - 重写桌面歌词窗口坐标的计算逻辑,修复桌面歌词移动到最边缘时,某些情况下在启用歌词后会出现窗口偏移的问题(远古bug了) +- 修复随机播放模式下使用稍后播放功能播放我的列表的歌曲时,切换下一曲永远是当前歌曲的问题(#1147) diff --git a/src/renderer/core/player/action.ts b/src/renderer/core/player/action.ts index 5e65d90d..e72130b3 100644 --- a/src/renderer/core/player/action.ts +++ b/src/renderer/core/player/action.ts @@ -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)