Skip to content

fix: 修复展开状态下再次点击切换实例按钮时重新展开的问题 - #6629

Closed
cow76192 wants to merge 5 commits into
HMCL-dev:mainfrom
cow76192:main
Closed

cow76192 wants to merge 5 commits into
HMCL-dev:mainfrom
cow76192:main

Conversation

@cow76192

@cow76192 cow76192 commented Aug 9, 2026

Copy link
Copy Markdown

修复内容

修复了主界面在实例选择列表已展开时,再次点击切换按钮不会收起列表而是重新展开的问题。

修复思路

MainPage 中记录 JFXPopup 关闭的时间戳,在 menuButton 点击事件中加入防抖判断,避免 Auto-Hide 触发后紧接着又重新展开列表

-避免 Popup 自动隐藏与按钮点击 Action 重复触发列表再次打开

喵喵喵~
Removed debug print statements from popup hide event.
@github-actions github-actions Bot added the 10+ label Aug 9, 2026
@Glavo

Glavo commented Aug 9, 2026

Copy link
Copy Markdown
Member

这个问题可以干净的解决,不需要这样的 workaround。See #6633

@cow76192 cow76192 closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants