单曲循环模式不应对“稍后播放”的歌曲有效

pull/1583/head
lyswhut 2023-09-03 00:58:31 +08:00
parent 44830752f7
commit 150342f699
2 changed files with 7 additions and 3 deletions

View File

@ -32,6 +32,10 @@
- 修复潜在导致列表数据不同步的问题
- 修复kg无评论时的加载处理问题
### 变更
- 播放模式应该只适用于列表内的歌曲,所以单曲循环模式不应对“稍后播放”的歌曲有效,该行为现在与移动端一致
### 其他
- 更新 electron 到 v22.3.23

View File

@ -3,7 +3,7 @@ import { useI18n } from '@renderer/plugins/i18n'
import { setTitle } from '@renderer/utils'
import {
setLoopPlay, setPause, setStop,
setPause, setStop,
} from '@renderer/plugins/player'
import useMediaSessionInfo from './useMediaSessionInfo'
@ -91,12 +91,12 @@ export default () => {
}
watch(() => appSetting['player.togglePlayMethod'], newValue => {
setLoopPlay(newValue == 'singleLoop')
// setLoopPlay(newValue == 'singleLoop')
if (playedList.length) clearPlayedList()
if (newValue == 'random' && playMusicInfo.musicInfo && !playMusicInfo.isTempPlay) addPlayedList({ ...(playMusicInfo as LX.Player.PlayMusicInfo) })
})
setLoopPlay(appSetting['player.togglePlayMethod'] == 'singleLoop')
// setLoopPlay(appSetting['player.togglePlayMethod'] == 'singleLoop')
window.key_event.on(HOTKEY_PLAYER.next.action, handlePlayNext)