use mutex

This commit is contained in:
Alex 2025-07-05 14:22:59 -05:00
parent 2f5d75ce21
commit f8ab533acb
No known key found for this signature in database
GPG key ID: 53CD082B3A5E1082
2 changed files with 91 additions and 33 deletions

View file

@ -73,7 +73,10 @@ class ImmichSliverAppBar extends ConsumerWidget {
onPressed: () => context.pop(),
),
IconButton(
onPressed: () => ref.read(backgroundSyncProvider).syncRemote(),
onPressed: () {
ref.read(backgroundSyncProvider).syncLocal(full: true);
ref.read(backgroundSyncProvider).syncRemote();
},
icon: const Icon(
Icons.sync,
),