fix: resume upload on launch (really fix it) (#21106)

pull/19830/merge
Alex 2025-08-20 21:36:03 +07:00 committed by GitHub
parent 99d6673503
commit c245208106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

@ -223,14 +223,14 @@ class _DeviceAsset {
const _DeviceAsset({required this.assetId, this.hash, this.dateTime});
}
Future<List<void>> runNewSync(WidgetRef ref, {bool full = false}) async {
Future<List<void>> runNewSync(WidgetRef ref, {bool full = false}) {
ref.read(backupProvider.notifier).cancelBackup();
final backgroundManager = ref.read(backgroundSyncProvider);
return Future.wait([
backgroundManager.syncLocal(full: full).then((_) {
Logger("runNewSync").fine("Hashing assets after syncLocal");
backgroundManager.hashAssets();
return backgroundManager.hashAssets();
}),
backgroundManager.syncRemote(),
]);