feat: allow searching for displayed patch names (#348)

This commit is contained in:
j4k0xb 2022-10-03 20:06:12 +02:00 committed by GitHub
parent 1aa24e2871
commit a90923011a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,9 +73,9 @@ class PatchesSelectorViewModel extends BaseViewModel {
.where((patch) =>
query.isEmpty ||
query.length < 2 ||
patch.name.toLowerCase().contains(
query.toLowerCase(),
))
patch.name.toLowerCase().contains(query.toLowerCase()) ||
patch.getSimpleName().toLowerCase().contains(query.toLowerCase())
)
.toList();
}