Fix incorrect pending metadata count

This commit is contained in:
Ming Ming 2021-10-28 01:23:03 +08:00
parent 9010756a08
commit be220071cd

View file

@ -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;
} }