Skip to content

Commit

Permalink
[Settings]Fix "Diagnostic Data Viewer" UI freeze (#35681)
Browse files Browse the repository at this point in the history
fix UI freeze
  • Loading branch information
davidegiacometti authored Oct 31, 2024
1 parent 9e3a198 commit 7382f18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ public void RefreshEnabledState()
ViewModel.RefreshSettingsOnExternalChange();
}

private void ViewDiagnosticData_Click(object sender, RoutedEventArgs e)
private async void ViewDiagnosticData_Click(object sender, RoutedEventArgs e)
{
ViewModel.ViewDiagnosticData();
await Task.Run(ViewModel.ViewDiagnosticData);
}
}
}

0 comments on commit 7382f18

Please sign in to comment.