mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 21:56:17 +00:00
fix: set clean selected patches only if not already set
This commit is contained in:
@@ -15,9 +15,11 @@ class PatchesSelectorViewModel extends BaseViewModel {
|
||||
locator<PatcherViewModel>().selectedApp!.packageName,
|
||||
));
|
||||
patches.sort((a, b) => a.name.compareTo(b.name));
|
||||
for (Patch p in patches) {
|
||||
if (!p.excluded) {
|
||||
selectedPatches.add(p);
|
||||
if (selectedPatches.isEmpty) {
|
||||
for (Patch p in patches) {
|
||||
if (!p.excluded) {
|
||||
selectedPatches.add(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user