Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] fix panic caused by more options showing all options even if its only local or remote in delete sheet

Priyanshu Dangaref086d8b7d161
diff --git a/mobile/apps/photos/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dart
index a0ac2b1d36..2a825e2581 100644
--- a/mobile/apps/photos/lib/utils/delete_file_util.dart
+++ b/mobile/apps/photos/lib/utils/delete_file_util.dart
@@ -1117,7 +1117,7 @@ class DeleteConfirmationSheetState extends State<DeleteConfirmationSheet> {
children: [...previousChildren, ?currentChild],
);
},
- child: (_isMoreOptionsShown)
+ child: (widget.isLocal && widget.isRemote && _isMoreOptionsShown)
? Column(
spacing: Spacing.md,
children: [