mirror of
https://github.com/immich-app/immich.git
synced 2025-08-30 23:02:39 -04:00
fix: backup resume more reliable on app start up (#20907)
This commit is contained in:
parent
c961d2aaf7
commit
8c1b630a2b
@ -223,11 +223,11 @@ class _DeviceAsset {
|
||||
const _DeviceAsset({required this.assetId, this.hash, this.dateTime});
|
||||
}
|
||||
|
||||
Future<void> runNewSync(WidgetRef ref, {bool full = false}) async {
|
||||
Future<List<void>> runNewSync(WidgetRef ref, {bool full = false}) async {
|
||||
ref.read(backupProvider.notifier).cancelBackup();
|
||||
|
||||
final backgroundManager = ref.read(backgroundSyncProvider);
|
||||
Future.wait([
|
||||
return Future.wait([
|
||||
backgroundManager.syncLocal(full: full).then((_) {
|
||||
Logger("runNewSync").fine("Hashing assets after syncLocal");
|
||||
backgroundManager.hashAssets();
|
||||
|
Loading…
x
Reference in New Issue
Block a user