mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-05 16:24:27 +02:00
fix: set clean selected patches only if not already set
This commit is contained in:
parent
2427b0847d
commit
915a85a2f0
@ -15,9 +15,11 @@ class PatchesSelectorViewModel extends BaseViewModel {
|
|||||||
locator<PatcherViewModel>().selectedApp!.packageName,
|
locator<PatcherViewModel>().selectedApp!.packageName,
|
||||||
));
|
));
|
||||||
patches.sort((a, b) => a.name.compareTo(b.name));
|
patches.sort((a, b) => a.name.compareTo(b.name));
|
||||||
for (Patch p in patches) {
|
if (selectedPatches.isEmpty) {
|
||||||
if (!p.excluded) {
|
for (Patch p in patches) {
|
||||||
selectedPatches.add(p);
|
if (!p.excluded) {
|
||||||
|
selectedPatches.add(p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user