Skip to content

armgit / ente

Public Imported from GitHub
0

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

pop FullScreenMemory screen when last memory is deleted

ashilkn6faa93c90cc9
diff --git a/lib/ui/home/memories/full_screen_memory_new.dart b/lib/ui/home/memories/full_screen_memory_new.dart
index ba9e61626c..e6e97e9264 100644
--- a/lib/ui/home/memories/full_screen_memory_new.dart
+++ b/lib/ui/home/memories/full_screen_memory_new.dart
@@ -193,6 +193,10 @@ class BottomIcons extends StatelessWidget {
inheritedData.memories[inheritedData.indexNotifier.value].file,
onFileRemoved: (file) => {
inheritedData.removeCurrentMemory.call(),
+ if (inheritedData.memories.isEmpty)
+ {
+ Navigator.of(context).pop(),
+ },
},
);
},