mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
Fix crash issue when user clicked cancel in UAC prompt window.
This commit is contained in:
parent
58801f8fb6
commit
b07d1b027c
@ -339,7 +339,14 @@ namespace Wox
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user