Skip to content

armgit / ente

Public Imported from GitHub
0

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

Notify listeners after mutateFile if file was in a selection set

ashilkn44ce188b47a2
diff --git a/mobile/apps/photos/lib/models/selected_files.dart b/mobile/apps/photos/lib/models/selected_files.dart
index cdecf57bec..f54ec7dc38 100644
--- a/mobile/apps/photos/lib/models/selected_files.dart
+++ b/mobile/apps/photos/lib/models/selected_files.dart
@@ -126,6 +126,7 @@ class SelectedFiles extends ChangeNotifier {
mutate();
if (wasInFiles) files.add(file);
if (wasInLastOp) lastSelectionOperationFiles.add(file);
+ if (wasInFiles || wasInLastOp) notifyListeners();
}
///Retains only the files that are present in the [filesToRetain] set in