mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 09:59:00 -07:00
fix(mobile): Issue Selecting Many Albuns for Backup (#12784)
* Update backup.provider.dart * Revert "Update backup.provider.dart" This reverts commitac2b7acef9
. * Reapply "Update backup.provider.dart" This reverts commitc9fe934b3b
. * dart formatting
This commit is contained in:
parent
8cd3f6b884
commit
af70111645
@ -313,6 +313,9 @@ 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 = {};
|
||||||
@ -408,9 +411,6 @@ class BackupNotifier extends StateNotifier<BackUpState> {
|
|||||||
selectedAlbumsBackupAssetsIds: selectedAlbumsBackupAssets,
|
selectedAlbumsBackupAssetsIds: selectedAlbumsBackupAssets,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save to persistent storage
|
|
||||||
await _updatePersistentAlbumsSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all necessary information for calculating the available albums,
|
/// Get all necessary information for calculating the available albums,
|
||||||
|
Loading…
Reference in New Issue
Block a user