Reuse the dialog's local-counter snapshot for the report button

This commit is contained in:
Roland Geider
2026-08-21 16:05:02 +02:00
parent 2a596349df
commit a6534dbbd0

View File

@@ -260,7 +260,8 @@ class SyncStatusDialog extends ConsumerWidget {
if (stalled || syncState.anyError != null)
TextButton(
onPressed: () async {
final local = await collectLocalSyncState();
// Same snapshot the copy button shows, and no second query.
final local = await ref.read(localSyncStateProvider.future);
final url = buildGithubIssueUrl(
issueTitle: 'Sync error',
issueErrorMessage: