[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; bool assignName = false;
await showChoiceDialog( await showChoiceDialog(
context, context,
title: "Do you want to name the person?", title: "Are you sure you want to unhide this person?",
firstButtonLabel: "Yes, name person", firstButtonLabel: "Yes, unhide person",
secondButtonLabel: "No, unhide person only",
firstButtonOnTap: () async { firstButtonOnTap: () async {
try { try {
await PersonService.instance await PersonService.instance
@ -292,17 +291,6 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
// await showGenericErrorDialog(context: context, error: e); // 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) { if (assignName) {
final result = await showAssignPersonAction( final result = await showAssignPersonAction(