Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: dismiss image editor on save edits

Prateek Sunal120053f61d1f
diff --git a/mobile/lib/ui/tools/editor/image_editor_page.dart b/mobile/lib/ui/tools/editor/image_editor_page.dart
index e04133b931..26f2cc5f6f 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<ImageEditorPage> {
files.add(newFile);
selectionIndex = files.length - 1;
}
+ await dialog.hide();
replacePage(
context,
DetailPage(
@@ -397,12 +398,12 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
),
);
} 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() {