[mob][photos] Make sure hidden doesn't show in naming sheet
This commit is contained in:
parent
38a40a5ace
commit
662dc1a32b
1 changed files with 8 additions and 2 deletions
|
@ -289,7 +289,13 @@ class _PersonActionSheetState extends State<PersonActionSheet> {
|
|||
}
|
||||
}
|
||||
|
||||
Future<Iterable<PersonEntity>> _getPersons() async {
|
||||
return PersonService.instance.getPersons();
|
||||
Future<Iterable<PersonEntity>> _getPersons({
|
||||
bool excludeHidden = true,
|
||||
}) async {
|
||||
final persons = await PersonService.instance.getPersons();
|
||||
if (excludeHidden) {
|
||||
persons.removeWhere((person) => person.data.isHidden);
|
||||
}
|
||||
return persons;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue