π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Always select all on tab change
laurenspriemc1ff02df14c3
diff --git a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart b/mobile/apps/photos/lib/ui/tools/similar_images_page.dartindex f652e72b29..6dddb61ffb 100644--- a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart+++ b/mobile/apps/photos/lib/ui/tools/similar_images_page.dart@@ -423,21 +423,17 @@ class _SimilarImagesPageState extends State<SimilarImagesPage> {}void _onTabChanged(TabFilter newTab) {- final hadSelections = _selectedFiles.files.isNotEmpty;-setState(() {_selectedTab = newTab;- if (hadSelections) {- final newSelection = <EnteFile>{};- for (final group in _filteredGroups) {- for (int i = 1; i < group.files.length; i++) {- newSelection.add(group.files[i]);- }+ final newSelection = <EnteFile>{};+ for (final group in _filteredGroups) {+ for (int i = 1; i < group.files.length; i++) {+ newSelection.add(group.files[i]);}- _selectedFiles.clearAll();- _selectedFiles.selectAll(newSelection);}+ _selectedFiles.clearAll();+ _selectedFiles.selectAll(newSelection);});}