减少桌面歌词窗口自动置顶刷新间隔,修复窗口被遮挡时歌词会被暂停的问题(#2320)

pull/2356/head
lyswhut 2025-03-21 09:15:39 +08:00
parent 08887cd6ed
commit 2c428ef099
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
- 修复潜在播放暂停的问题 - 修复潜在播放暂停的问题
- 修复 kw 歌单详情出现打开失败的问题(#2317 - 修复 kw 歌单详情出现打开失败的问题(#2317
- 修复 kg 热门评论无法获取的问题 - 修复 kg 热门评论无法获取的问题
- 修复桌面歌词被遮挡时会被暂停的问题(#2320
### 优化 ### 优化

View File

@ -138,6 +138,7 @@ export const createWindow = () => {
enableWebSQL: false, enableWebSQL: false,
webgl: false, webgl: false,
spellcheck: false, // 禁用拼写检查器 spellcheck: false, // 禁用拼写检查器
backgroundThrottling: false,
}, },
}) })
@ -224,7 +225,7 @@ export const alwaysOnTopTools: AlwaysOnTopTools = {
return return
} }
setAlwaysOnTop(true, 'screen-saver') setAlwaysOnTop(true, 'screen-saver')
}, 1000) }, 500)
}, },
clearLoop() { clearLoop() {
if (!this.timeout) return if (!this.timeout) return