Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

游戏下载页面添加搜索功能 #3517

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Conversation

zkitefly
Copy link
Member

@zkitefly zkitefly commented Jan 1, 2025

_org.jackhuang.hmcl.Launcher_20250101153851.mp4

@zkitefly zkitefly requested a review from Glavo January 1, 2025 05:23
@zkitefly zkitefly changed the title 添加搜索功能 游戏下载页面添加搜索功能 Jan 1, 2025
@zkitefly zkitefly marked this pull request as draft January 1, 2025 05:25
@zkitefly zkitefly marked this pull request as ready for review January 1, 2025 07:40
toolbarPane.setContent(checkPane, ContainerAnimations.FADE);
centrePane.getContent().add(0, toolbarPane);

PauseTransition pause = new PauseTransition(Duration.millis(100));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么要延时 100ms?即时显示搜索结果应该不会造成卡顿?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

解决有人短时间内频繁输入

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

搜索是个很快的过程,应该立即展示结果而不是等 0.1s,这是个肉眼可见的延迟。短时间内频繁输入也不会造成性能问题。

@3gf8jv4dv
Copy link
Contributor

Hey, should this fix #3141?

@burningtnt
Copy link
Member

burningtnt commented Jan 3, 2025 via email

@yushijinhun yushijinhun merged commit 397edae into HMCL-dev:main Jan 3, 2025
2 checks passed
@zkitefly zkitefly deleted the modlist branch January 3, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add a search box in Download → Game and loader’s version list
4 participants