[mob][photos] Small fix

This commit is contained in:
laurenspriem 2024-05-03 14:59:25 +05:30
parent f275761c4b
commit 915a3f646d

View file

@ -278,9 +278,8 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
bool assignName = false;
await showChoiceDialog(
context,
title: "Do you want to name the person?",
firstButtonLabel: "Yes, name person",
secondButtonLabel: "No, unhide person only",
title: "Are you sure you want to unhide this person?",
firstButtonLabel: "Yes, unhide person",
firstButtonOnTap: () async {
try {
await PersonService.instance
@ -292,17 +291,6 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
// await showGenericErrorDialog(context: context, error: e);
}
},
secondButtonOnTap: () async {
try {
await PersonService.instance
.deletePerson(widget.person.remoteID, onlyMapping: false);
Bus.instance.fire(PeopleChangedEvent());
Navigator.of(context).pop(); // Close the hidden page
} catch (e, s) {
_logger.severe('Unhiding a person failed', e, s);
// await showGenericErrorDialog(context: context, error: e);
}
},
);
if (assignName) {
final result = await showAssignPersonAction(