Skip to content

Commit

Permalink
#309 Fix restart & restart as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
BornToBeRoot committed Aug 31, 2020
1 parent 2d9ab4e commit d7619dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/NETworkManager/MainWindow.xaml.cs
Expand Up @@ -1172,7 +1172,10 @@ public void RestartApplication(bool closeApplication = true, bool asAdmin = fals
};

if (asAdmin)
{
info.UseShellExecute = true;
info.Verb = "runas";
}

Process.Start(info);

Expand Down

0 comments on commit d7619dd

Please sign in to comment.