mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 13:35:31 +02:00
Fix crash issue when user clicked cancel in UAC prompt window.
This commit is contained in:
@@ -338,9 +338,16 @@ namespace Wox
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private void BtnEnableInstaller_OnClick(object sender, RoutedEventArgs e)
|
private void BtnEnableInstaller_OnClick(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Process.Start("Wox.UAC.exe", "AssociatePluginInstaller");
|
Process.Start("Wox.UAC.exe", "AssociatePluginInstaller");
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
//throw an exception when user click cancel in UAC prompt window.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region Theme
|
#region Theme
|
||||||
private void ThemeComboBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
private void ThemeComboBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user