mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Merge 8a8f01ec2d into 158cd5b268
This commit is contained in:
commit
bac22c68fd
1 changed files with 6 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import 'package:immich_mobile/providers/infrastructure/asset.provider.dart';
|
|||
import 'package:immich_mobile/providers/infrastructure/db.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/memory.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/storage.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/sync.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/trash_sync.provider.dart';
|
||||
import 'package:immich_mobile/providers/server_info.provider.dart';
|
||||
import 'package:immich_mobile/providers/sync_status.provider.dart';
|
||||
|
|
@ -138,7 +139,11 @@ class SyncStatusAndActions extends HookConsumerWidget {
|
|||
subtitle: context.t.tap_to_run_job,
|
||||
leading: const Icon(Icons.sync),
|
||||
trailing: _SyncStatusIcon(status: ref.watch(syncStatusProvider).localSyncStatus),
|
||||
onTap: () {
|
||||
onTap: () async {
|
||||
await ref.read(localSyncServiceProvider).resetFullSync();
|
||||
if (!context.mounted) {
|
||||
return;
|
||||
}
|
||||
unawaited(ref.read(backgroundSyncProvider).syncLocal(full: true));
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue