Skip to content

Commit 4937ddb

Browse files
committed
修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
1 parent 4b00a06 commit 4937ddb

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

publish/changeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
### 修复
22

33
- 修复 kg 搜索结果显示问题(#2782
4+
- 修复某些情况下开放 API 获取到的音量为0 的问题(#2790

src/main/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ export const listenerAppEvent = (startApp: () => void) => {
257257
})
258258
global.lx.event_app.on('app_inited', () => {
259259
setProxy()
260+
global.lx.event_app.player_status({ volume: Math.trunc(global.lx.appSetting['player.volume'] * 100) })
261+
global.lx.event_app.player_status({ mute: global.lx.appSetting['player.isMute'] })
260262
})
261263
}
262264

0 commit comments

Comments
 (0)