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