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() {