fix: 修复安装游戏时选择版本后返回已选择的版本会被清除的问题 (#5423)

This commit is contained in:
CiiLu
2026-02-06 22:34:31 +08:00
committed by GitHub
parent ef5849eba1
commit c2d5d1b5f6

View File

@@ -60,7 +60,6 @@ import org.jackhuang.hmcl.ui.wizard.Navigation;
import org.jackhuang.hmcl.ui.wizard.Refreshable;
import org.jackhuang.hmcl.ui.wizard.WizardPage;
import org.jackhuang.hmcl.util.NativePatcher;
import org.jackhuang.hmcl.util.SettingsMap;
import org.jackhuang.hmcl.util.StringUtils;
import org.jackhuang.hmcl.util.i18n.I18n;
import org.jackhuang.hmcl.util.platform.OperatingSystem;
@@ -131,11 +130,6 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab
return title;
}
@Override
public void cleanup(SettingsMap settings) {
settings.remove(libraryId);
}
private void onRefresh() {
refresh();
}