Skip to content

Commit

Permalink
fix: Include new patches that are used by default
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Dec 12, 2023
1 parent 1fad904 commit 7831a34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ui/views/patches_selector/patches_selector_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ class PatchesSelectorViewModel extends BaseViewModel {

bool isSelected(Patch patch) {
return selectedPatches.any(
(element) => element.name == patch.name,
);
(element) => element.name == patch.name,
) ||
(isPatchNew(patch) && !patch.excluded);
}

void navigateToPatchOptions(List<Option> setOptions, Patch patch) {
Expand Down

0 comments on commit 7831a34

Please sign in to comment.