From 120053f61d1f0e420d30b161410840961fa9ed11 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Fri, 15 Nov 2024 02:24:13 +0530 Subject: [PATCH] fix: dismiss image editor on save edits --- mobile/lib/ui/tools/editor/image_editor_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/lib/ui/tools/editor/image_editor_page.dart b/mobile/lib/ui/tools/editor/image_editor_page.dart index e04133b9310..26f2cc5f6f7 100644 --- a/mobile/lib/ui/tools/editor/image_editor_page.dart +++ b/mobile/lib/ui/tools/editor/image_editor_page.dart @@ -387,6 +387,7 @@ class _ImageEditorPageState extends State { files.add(newFile); selectionIndex = files.length - 1; } + await dialog.hide(); replacePage( context, DetailPage( @@ -397,12 +398,12 @@ class _ImageEditorPageState extends State { ), ); } catch (e, s) { + await dialog.hide(); showToast(context, S.of(context).oopsCouldNotSaveEdits); _logger.severe(e, s); } finally { await PhotoManager.startChangeNotify(); } - await dialog.hide(); } void flip() {