From dafd114b45e5ccc6391ba8f09d1d57d8121192d2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 1 May 2023 12:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=94=B9=E9=9F=B3?= =?UTF-8?q?=E6=BA=90=E7=9A=84=E5=88=97=E8=A1=A8=E6=AD=8C=E6=9B=B2=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E5=AE=9E=E6=97=B6=E6=9B=B4=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/core/apiSource.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/publish/changeLog.md b/publish/changeLog.md index 8a9cf40..bad7eec 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -13,6 +13,7 @@ - 修复在Android 5.1下报错的问题 - 修复对存在错误时间标签的歌词的解析 - 修复聚合搜索时未显示源名称的问题 +- 修复更改音源的列表歌曲颜色的实时更新问题 ### 其他 diff --git a/src/core/apiSource.ts b/src/core/apiSource.ts index 833283d..3749739 100644 --- a/src/core/apiSource.ts +++ b/src/core/apiSource.ts @@ -29,6 +29,9 @@ export const setUserApi = (apiId: string) => { if (apiId != settingState.setting['common.apiSource']) { updateSetting({ 'common.apiSource': apiId }) + requestAnimationFrame(() => { + global.state_event.apiSourceUpdated(apiId) + }) } }