From 670889f14e5d91160b54c0e7626a20c66356de40 Mon Sep 17 00:00:00 2001 From: obydog002 <> Date: Thu, 30 May 2024 13:30:50 +0800 Subject: [PATCH] #3156 map selection and active mods are now remembered correctly --- .../java/com/faforever/client/game/CreateGameController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/faforever/client/game/CreateGameController.java b/src/main/java/com/faforever/client/game/CreateGameController.java index db0f65da41..79d877054e 100644 --- a/src/main/java/com/faforever/client/game/CreateGameController.java +++ b/src/main/java/com/faforever/client/game/CreateGameController.java @@ -210,6 +210,10 @@ public void onCloseButtonClicked() { onCloseButtonClickedListener.run(); } + @Override + public void onShow() { + addShownSubscription(() -> modManagerController.apply()); + } private void setCreateGameButtonState() { String title = titleTextField.getText(); @@ -309,6 +313,7 @@ protected void initMapSelection() { if (newItem == null && filteredMaps.contains(oldItem)) { mapListView.getSelectionModel().select(oldItem); } else { + lastGamePrefs.setLastMap(newItem != null ? newItem.folderName() : null); selectedMap.set(newItem); } });