Skip to content

Commit

Permalink
修复切换音源时可能出现切换死循环的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jun 17, 2024
1 parent 305ce6f commit de5ea4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- 修复 MacOS 下点击 dock 右键菜单的退出按钮时,程序没有退出的问题(#1923
- 修复 OpenAPI 的 `lyricLineAllText` 在切换到无歌词的音乐时内容没有更新的问题(#1925
- 修复切换音源时可能出现切换死循环的问题

### 变更

Expand Down
1 change: 1 addition & 0 deletions src/renderer/core/apiSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ export const setUserApi = async(apiId: string) => {
if (!window.lx.apiInitPromise[1]) window.lx.apiInitPromise[2](true)
}

if (prevId != apiId) return
if (apiId != appSetting['common.apiSource']) setApiSource(apiId)
}

0 comments on commit de5ea4f

Please sign in to comment.