Skip to content

Fix: Prevent theme pack tags from disappearing#6272

Closed
KSSJW wants to merge 3 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:theme-pack-management-page-tags-fix
Closed

Fix: Prevent theme pack tags from disappearing#6272
KSSJW wants to merge 3 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:theme-pack-management-page-tags-fix

Conversation

@KSSJW

@KSSJW KSSJW commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

修复ThemePackManagementPage中标签消失的问题

缘由

方法来源

@KSSJW KSSJW changed the title Theme pack management page tags fix Fix: Prevent theme pack tags from disappearing Jun 29, 2026
@KSSJW

KSSJW commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request optimizes the updateItem method in ThemePackItemCell by checking if the theme pack has changed before updating its tags. The reviewer suggests extending this optimization by also wrapping the icon clearing and updating logic inside the same conditional block to avoid redundant image operations and improve scrolling performance.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@KSSJW

KSSJW commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request optimizes the updateItem method in ThemePackItemCell within ThemePackManagementPage.java. It introduces a check to compare the new theme pack with the old one (oldThemePack != themePack), preventing redundant UI updates such as clearing and re-adding tags, resetting the icon image, and reloading the icon when the item has not changed. There are no review comments, so we have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@KSSJW KSSJW marked this pull request as ready for review June 29, 2026 16:29
@KSSJW

KSSJW commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

以下更改使用了更优雅的方法,出色地修复了问题,故关闭本PR。🥳🎉🎉🎉

@KSSJW KSSJW closed this Jun 30, 2026
@KSSJW KSSJW deleted the theme-pack-management-page-tags-fix branch June 30, 2026 13:22
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.

1 participant