diff --git a/src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs b/src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs index e8e89cc7cd..a7b0bcf5dc 100644 --- a/src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs +++ b/src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs @@ -159,9 +159,9 @@ namespace Microsoft.PowerToys.Settings.UI.Views 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); } } }