Repository navigation
fix: 修复托盘恢复后缩略图工具栏消失 - #246
Merged
imsyy merged 1 commit intoSep 7, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
是否包含破坏性变更
改动说明
修复 Windows 下应用最小化到托盘后,在隐藏期间发生自动切歌或通过多媒体键切歌,再次唤出窗口时任务栏缩略图工具栏消失的问题。
窗口隐藏期间调用
setThumbarButtons()会导致 Electron 内部的按钮注册状态异常。由于播放状态和喜欢状态的变化都会刷新缩略图工具栏,隐藏期间切歌可能触发该问题。本次改动在统一的 Thumbar 渲染入口增加窗口可见性检查:
setThumbarButtons()关联 Issue
测试情况
测试环境:
复现步骤:
修复后确认问题已解决,缩略图工具栏能够正常显示,按钮状态与当前播放状态一致。本次改动仅影响 Windows 任务栏缩略图工具栏;未修改 macOS 和 Linux 平台行为。
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交