Fix adding items to uninited collections did not update the items count

This commit is contained in:
Ming Ming 2024-10-27 22:14:50 +08:00
parent c81c80a272
commit c20f2441ef

View file

@ -118,6 +118,8 @@ class CollectionItemsController {
if (toAdd.isEmpty) { if (toAdd.isEmpty) {
return; return;
} }
_countStreamController
.addWithValue((value) => (value ?? 0) + files.length);
} }
ExceptionEvent? error; ExceptionEvent? error;