mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Settings]Fix crash opening system color settings (#27797)
* [Settings]Fix crash opening system color settings * Update src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs Co-authored-by: Davide Giacometti <davide.giacometti@outlook.it> --------- Co-authored-by: Davide Giacometti <davide.giacometti@outlook.it>
This commit is contained in:
@@ -116,7 +116,14 @@ namespace Microsoft.PowerToys.Settings.UI.Views
|
||||
|
||||
private void OpenColorsSettings_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Helpers.StartProcessHelper.Start(Helpers.StartProcessHelper.ColorsSettings);
|
||||
try
|
||||
{
|
||||
Helpers.StartProcessHelper.Start(Helpers.StartProcessHelper.ColorsSettings);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError("Error while trying to open the system color settings", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshBackupRestoreStatus(int delayMs = 0)
|
||||
|
||||
Reference in New Issue
Block a user