Skip to content

Conversation

@CiiLu
Copy link
Contributor

@CiiLu CiiLu commented Jan 25, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures that version icon changes are properly propagated so that the main page’s version icon stays in sync with updates made in the version settings UI.

Changes:

  • Replaces the wildcard org.jackhuang.hmcl.game.* import with specific class imports and adds imports for Image, Event, and JavaRuntime used in the updated logic.
  • Enhances loadVersion in VersionSettingsPage to capture the previously loaded version ID and icon and, when reloading the same version, fire onVersionIconChanged if the repository’s icon image differs from the last displayed icon.
  • Updates onDeleteIcon to fire onVersionIconChanged after deleting a custom icon and reloading the icon, so consumers like GameAdvancedListItem refresh the displayed icon.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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