Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,14 @@ public static RootPage getRootPage() {
/// 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);
}
}

Expand Down
Loading