Skip to content

Commit

Permalink
Fix create game map and mod selection (#3188)
Browse files Browse the repository at this point in the history
#3156 map selection and active mods are now remembered correctly
  • Loading branch information
obydog002 committed May 31, 2024
1 parent 5e27dbb commit 6f52c51
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ public void onCloseButtonClicked() {
onCloseButtonClickedListener.run();
}

@Override
public void onShow() {
addShownSubscription(() -> modManagerController.apply());
}

private void setCreateGameButtonState() {
String title = titleTextField.getText();
Expand Down Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 6f52c51

Please sign in to comment.