修复列表数据同步问题

pull/2077/head
lyswhut 2024-08-18 10:10:38 +08:00
parent 38bea3ced1
commit 684f09feaf
1 changed files with 2 additions and 3 deletions

View File

@ -206,9 +206,8 @@ export const registerListAction = (appSetting: LX.AppSetting, onListChanged: (li
if (updatedListIds.length) onListChanged(updatedListIds)
}
const list_music_update = ({ params: musicInfos }: LX.IpcRendererEventParams<LX.List.ListActionMusicUpdate>) => {
listMusicUpdateInfo(musicInfos)
// const updatedListIds = listMusicUpdateInfo(musicInfos)
// if (updatedListIds.length) onListChanged(updatedListIds)
const updatedListIds = listMusicUpdateInfo(musicInfos)
if (updatedListIds.length) onListChanged(updatedListIds)
}
const list_music_update_position = ({ params: { listId, position, ids } }: LX.IpcRendererEventParams<LX.List.ListActionMusicUpdatePosition>) => {
void listMusicUpdatePosition(listId, position, ids).then(updatedListIds => {