mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Fix incorrect pending metadata count
This commit is contained in:
parent
9010756a08
commit
be220071cd
1 changed files with 2 additions and 1 deletions
|
@ -550,7 +550,8 @@ class _HomePhotosState extends State<HomePhotos>
|
||||||
(!_hasFiredMetadataTask.value || ignoreFired)) {
|
(!_hasFiredMetadataTask.value || ignoreFired)) {
|
||||||
MetadataTaskManager().addTask(MetadataTask(widget.account));
|
MetadataTaskManager().addTask(MetadataTask(widget.account));
|
||||||
_metadataTaskProcessTotalCount = _backingFiles
|
_metadataTaskProcessTotalCount = _backingFiles
|
||||||
.where((f) => file_util.isSupportedFormat(f) && f.metadata == null)
|
.where(
|
||||||
|
(f) => file_util.isSupportedImageFormat(f) && f.metadata == null)
|
||||||
.length;
|
.length;
|
||||||
_hasFiredMetadataTask.value = true;
|
_hasFiredMetadataTask.value = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue