diff --git a/publish/changeLog.md b/publish/changeLog.md index 0939e636..ae1b901c 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -9,6 +9,7 @@ - 修复 Windows 下界面缩放后移动桌面歌词会改变歌词窗口大小的问题(#2244) - 修复 tx 歌单搜索名字、描述出现乱码的问题(#2250) - 修复本地 FLAC 文件内嵌歌词无法读取的问题 +- 修复潜在播放暂停的问题 ### 优化 diff --git a/src/renderer/core/player/action.ts b/src/renderer/core/player/action.ts index 6c0e3eca..e8597a34 100644 --- a/src/renderer/core/player/action.ts +++ b/src/renderer/core/player/action.ts @@ -564,6 +564,7 @@ export const playPrev = async(isAutoToggle = false): Promise => { * 恢复播放 */ export const play = () => { + window.lx.isPlayedStop &&= false if (playMusicInfo.musicInfo == null) return if (isEmpty()) { if (createGettingUrlId(playMusicInfo.musicInfo) != gettingUrlId) setMusicUrl(playMusicInfo.musicInfo) diff --git a/src/renderer/core/useApp/usePlayer/usePlayer.ts b/src/renderer/core/useApp/usePlayer/usePlayer.ts index 08ebac5d..af617738 100644 --- a/src/renderer/core/useApp/usePlayer/usePlayer.ts +++ b/src/renderer/core/useApp/usePlayer/usePlayer.ts @@ -87,14 +87,13 @@ export default () => { } const handleEnded = () => { // setTimeout(() => { + setAllStatus(t('player__end')) if (window.lx.isPlayedStop) { - setAllStatus(t('player__end')) console.log('played stop') return } // resetPlayerMusicInfo() // window.app_event.stop() - setAllStatus(t('player__end')) void playNext(true) // }) }