fix: dont select all patches if experimental toggle is off.

This commit is contained in:
Aunali321 2022-11-01 15:36:06 +05:30
parent ba5234e850
commit 1d440d25be

View File

@ -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();
}