mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
### 修复
|
||||
|
||||
- 修复 kg 搜索结果显示问题(#2782)
|
||||
- 修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
|
||||
|
||||
@@ -257,6 +257,8 @@ export const listenerAppEvent = (startApp: () => void) => {
|
||||
})
|
||||
global.lx.event_app.on('app_inited', () => {
|
||||
setProxy()
|
||||
global.lx.event_app.player_status({ volume: Math.trunc(global.lx.appSetting['player.volume'] * 100) })
|
||||
global.lx.event_app.player_status({ mute: global.lx.appSetting['player.isMute'] })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user