mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Don't select patches by default based on their excluded flag
This commit is contained in:
parent
2f4726ea68
commit
07407933d9
@ -17,13 +17,6 @@ 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));
|
||||||
if (selectedPatches.isEmpty) {
|
|
||||||
for (Patch patch in patches) {
|
|
||||||
if (!patch.excluded && isPatchSupported(patch)) {
|
|
||||||
selectedPatches.add(patch);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class SearchBar extends StatefulWidget {
|
|||||||
|
|
||||||
class _SearchBarState extends State<SearchBar> {
|
class _SearchBarState extends State<SearchBar> {
|
||||||
final TextEditingController _textController = TextEditingController();
|
final TextEditingController _textController = TextEditingController();
|
||||||
bool _toggleSelectAll = true;
|
bool _toggleSelectAll = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user