预热设置页面时预加载游戏预设 (#7105)

This commit is contained in:
Glavo authored and GitHub committed 2026-10-28 03:38:08 +08:00
1 parent 6bbb1d157c
commit ac378ad46a
1 file changed
+4 -2
@@ -183,12 +183,14 @@ public final class Controllers {
/// The cached settings page.
private static @Nullable LauncherSettingsPage settingsPage;
/// Creates and attaches the settings page for a layout pulse unless already cached.
/// Creates the settings page, loads the default preset, and attaches it for layout unless already cached.
@FXThread
public static void prepareSettingsPage() {
if (settingsPage == null) {
LOG.info("Preparing settings page");
settingsPage = getDecorator().prewarmPage(new LauncherSettingsPage());
LauncherSettingsPage page = new LauncherSettingsPage();
page.showGameSettings(GameDirectoryManager.getSelectedRepository());
settingsPage = getDecorator().prewarmPage(page);
}
}