fix: AGS selection weirdness
refresh selection on opening so that dependent and explicitly activated modules are colored in addition to selected gameplay module
refresh selection even if module was previously selected to avoid weirdness for dependent modules being explicitly activated
@@ -125,6 +125,7 @@ public void onOpened() {
for (ModuleSelectionInfo info : sortedModules) {
info.setExplicitSelection(config.getDefaultModSelection().hasModule(info.getMetadata().getId()));
}
+ refreshSelection();
filterModules();
}
@@ -753,11 +754,9 @@ private void select(ModuleSelectionInfo target) {
if (target.isValidToSelect() && !target.isExplicitSelection()) {
boolean previouslySelected = target.isSelected();
target.setExplicitSelection(true);
- if (!previouslySelected) {
refreshSelection();
}
}
- }
private List<Name> getExplicitlySelectedModules() {
return allSortedModules.stream()
