You've already forked lx-music-desktop
修复潜在播放暂停的问题
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- 修复 Windows 下界面缩放后移动桌面歌词会改变歌词窗口大小的问题(#2244)
|
||||
- 修复 tx 歌单搜索名字、描述出现乱码的问题(#2250)
|
||||
- 修复本地 FLAC 文件内嵌歌词无法读取的问题
|
||||
- 修复潜在播放暂停的问题
|
||||
|
||||
### 优化
|
||||
|
||||
|
||||
@@ -564,6 +564,7 @@ export const playPrev = async(isAutoToggle = false): Promise<void> => {
|
||||
* 恢复播放
|
||||
*/
|
||||
export const play = () => {
|
||||
window.lx.isPlayedStop &&= false
|
||||
if (playMusicInfo.musicInfo == null) return
|
||||
if (isEmpty()) {
|
||||
if (createGettingUrlId(playMusicInfo.musicInfo) != gettingUrlId) setMusicUrl(playMusicInfo.musicInfo)
|
||||
|
||||
@@ -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)
|
||||
// })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user