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

This commit is contained in:
lyswhut
2023-09-03 00:58:31 +08:00
parent 44830752f7
commit 150342f699
2 changed files with 7 additions and 3 deletions
@@ -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)