mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Notify changes after the updating is completed.
This commit is contained in:
@@ -603,7 +603,7 @@ void _updateFolderBase(
|
||||
tags: newTags,
|
||||
);
|
||||
|
||||
LocalFavoritesManager().updateInfo(folder, item);
|
||||
LocalFavoritesManager().updateInfo(folder, item, false);
|
||||
|
||||
var updateTime = newInfo.findUpdateTime();
|
||||
if (updateTime != null && updateTime != c.updateTime) {
|
||||
@@ -613,6 +613,8 @@ void _updateFolderBase(
|
||||
c.type,
|
||||
updateTime,
|
||||
);
|
||||
} else {
|
||||
LocalFavoritesManager().updateCheckTime(folder, c.id, c.type);
|
||||
}
|
||||
updated++;
|
||||
return;
|
||||
@@ -639,6 +641,10 @@ void _updateFolderBase(
|
||||
|
||||
await Future.wait(futures);
|
||||
|
||||
if (updated > 0) {
|
||||
LocalFavoritesManager().notifyChanges();
|
||||
}
|
||||
|
||||
stream.close();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user