From 504be2e5ef0588c325e6da68e2cd50b7eceeb675 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 18 Mar 2022 19:23:35 +0100 Subject: [PATCH] Close report dialog if user has already sent a report --- lib/ui/dialogs/report_dialog.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/dialogs/report_dialog.dart b/lib/ui/dialogs/report_dialog.dart index aa1856a..dacbb42 100644 --- a/lib/ui/dialogs/report_dialog.dart +++ b/lib/ui/dialogs/report_dialog.dart @@ -126,6 +126,7 @@ class _ReportDialogState extends SafeState<_ReportDialog> { } else if (result == ReportResult.ErrorAlreadyReported) { await alert( context, tr("You have already sent a report for this resource!")); + MainController.of(context)!.popPage(); } else { await alert(context, tr("Failed to send report!")); }