diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameAdvancedListItem.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameAdvancedListItem.java index ee844b5ef..256072a06 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameAdvancedListItem.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameAdvancedListItem.java @@ -32,11 +32,11 @@ public class GameAdvancedListItem extends AdvancedListItem { public GameAdvancedListItem() { tooltip = new Tooltip(); - FXUtils.installFastTooltip(this, tooltip); FXUtils.onChangeAndOperate(Profiles.selectedVersionProperty(), version -> { if (version != null && Profiles.getSelectedProfile() != null && Profiles.getSelectedProfile().getRepository().hasVersion(version)) { + FXUtils.installFastTooltip(this, tooltip); setTitle(version); setSubtitle(null); setImage(Profiles.getSelectedProfile().getRepository().getVersionIconImage(version));