Skip to content

armgit / ente

Public Imported from GitHub
0

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

Sync initial state in file selection overlay bar

ashilkn86d5ac04cc3c
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart
index c2dd5ffe0c..d17a2f9369 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart
@@ -61,6 +61,11 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>
reportBoundary(BoundaryPosition.bottom);
}
});
+
+ // Sync initial state if files are already selected
+ if (widget.selectedFiles.files.isNotEmpty) {
+ _selectedFilesListener();
+ }
}
@override