Skip to content

Commit

Permalink
fix: dont select all patches if experimental toggle is off.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunali321 committed Nov 1, 2022
1 parent ba5234e commit 1d440d2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,16 @@ class PatchesSelectorViewModel extends BaseViewModel {

void selectAllPatches(bool isSelected) {
selectedPatches.clear();
if (isSelected) {

if (isSelected && _managerAPI.areExperimentalPatchesEnabled() == false) {
selectedPatches
.addAll(patches.where((element) => isPatchSupported(element)));
}

if (isSelected && _managerAPI.areExperimentalPatchesEnabled()) {
selectedPatches.addAll(patches);
}

notifyListeners();
}

Expand Down

0 comments on commit 1d440d2

Please sign in to comment.