Skip to content

Commit

Permalink
FAForever#3156 map selection and active mods are now remembered corre…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
obydog002 committed May 30, 2024
1 parent a140fd7 commit 670889f
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 670889f

Please sign in to comment.