Skip to content

Commit

Permalink
fix: Don't select patches by default based on their excluded flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 19, 2022
1 parent 2f4726e commit 0740793
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions lib/ui/views/patches_selector/patches_selector_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ class PatchesSelectorViewModel extends BaseViewModel {
locator<PatcherViewModel>().selectedApp!.packageName,
));
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();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/shared/search_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SearchBar extends StatefulWidget {

class _SearchBarState extends State<SearchBar> {
final TextEditingController _textController = TextEditingController();
bool _toggleSelectAll = true;
bool _toggleSelectAll = false;

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 0740793

Please sign in to comment.