use mutex

This commit is contained in:
Alex
2025-07-05 14:22:59 -05:00
parent 2f5d75ce21
commit f8ab533acb
2 changed files with 91 additions and 33 deletions
@@ -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,
),