mirror of
https://github.com/immich-app/immich.git
synced 2025-10-26 00:02:34 -04:00
fix: resume upload on launch (really fix it) (#21106)
This commit is contained in:
parent
99d6673503
commit
c245208106
@ -223,14 +223,14 @@ class _DeviceAsset {
|
|||||||
const _DeviceAsset({required this.assetId, this.hash, this.dateTime});
|
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();
|
ref.read(backupProvider.notifier).cancelBackup();
|
||||||
|
|
||||||
final backgroundManager = ref.read(backgroundSyncProvider);
|
final backgroundManager = ref.read(backgroundSyncProvider);
|
||||||
return Future.wait([
|
return Future.wait([
|
||||||
backgroundManager.syncLocal(full: full).then((_) {
|
backgroundManager.syncLocal(full: full).then((_) {
|
||||||
Logger("runNewSync").fine("Hashing assets after syncLocal");
|
Logger("runNewSync").fine("Hashing assets after syncLocal");
|
||||||
backgroundManager.hashAssets();
|
return backgroundManager.hashAssets();
|
||||||
}),
|
}),
|
||||||
backgroundManager.syncRemote(),
|
backgroundManager.syncRemote(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user