1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

Revert "Update backup.provider.dart"

This reverts commit ac2b7acef9.
This commit is contained in:
Shubham 2024-09-19 12:44:47 +05:30
parent ac2b7acef9
commit c9fe934b3b

View File

@ -313,9 +313,6 @@ class BackupNotifier extends StateNotifier<BackUpState> {
/// Those assets are unique and are used as the total assets /// Those assets are unique and are used as the total assets
/// ///
Future<void> _updateBackupAssetCount() async { Future<void> _updateBackupAssetCount() async {
// Save to persistent storage
await _updatePersistentAlbumsSelection();
final duplicatedAssetIds = await _backupService.getDuplicatedAssetIds(); final duplicatedAssetIds = await _backupService.getDuplicatedAssetIds();
final Set<BackupCandidate> assetsFromSelectedAlbums = {}; final Set<BackupCandidate> assetsFromSelectedAlbums = {};
final Set<BackupCandidate> assetsFromExcludedAlbums = {}; final Set<BackupCandidate> assetsFromExcludedAlbums = {};
@ -412,6 +409,8 @@ class BackupNotifier extends StateNotifier<BackUpState> {
); );
} }
// Save to persistent storage
await _updatePersistentAlbumsSelection();
} }
/// Get all necessary information for calculating the available albums, /// Get all necessary information for calculating the available albums,