fix: Don't select patches by default based on their excluded flag

This commit is contained in:
Alberto Ponces 2022-09-20 00:59:14 +01:00
parent 2f4726ea68
commit 07407933d9
2 changed files with 1 additions and 8 deletions

View File

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

View File

@ -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) {