mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix crash issue when user clicked cancel in UAC prompt window.
This commit is contained in:
parent
58801f8fb6
commit
b07d1b027c
1 changed files with 8 additions and 1 deletions
|
|
@ -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 a new issue