Fix metadata task progress not shown correctly on web

This commit is contained in:
Ming Ming 2022-08-30 22:58:52 +08:00
parent 7497e15267
commit fe99b6b1f0
2 changed files with 7 additions and 1 deletions

View file

@ -81,6 +81,9 @@ class UpdateMissingMetadata {
metadataUpdate = OrNull(metadata);
} else {
_log.finer("[call] Skip updating metadata for ${file.path}");
KiwiContainer().resolve<EventBus>().fire(
const MetadataTaskStateChangedEvent(
MetadataTaskState.prcoessing));
}
final lat =

View file

@ -849,7 +849,10 @@ class _Web {
}
void _onFilePropertyUpdated(FilePropertyUpdatedEvent ev) {
if (!ev.hasAnyProperties([FilePropertyUpdatedEvent.propMetadata])) {
if (!ev.hasAnyProperties([
FilePropertyUpdatedEvent.propMetadata,
FilePropertyUpdatedEvent.propImageLocation,
])) {
return;
}
// ignore: invalid_use_of_protected_member