mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
Reuse the dialog's local-counter snapshot for the report button
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user