Skip to content

Commit

Permalink
fix: Application.Restart throws InvalidOperationException (#2845)
Browse files Browse the repository at this point in the history
  • Loading branch information
EatonZ authored May 21, 2020
1 parent 2e65e6e commit eaf006d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ public static void Restart()
sb.Append(arguments[arguments.Length - 1]);
sb.Append('"');
}
ProcessStartInfo currentStartInfo = Process.GetCurrentProcess().StartInfo;
ProcessStartInfo currentStartInfo = new ProcessStartInfo();
currentStartInfo.FileName = ExecutablePath;
if (sb.Length > 0)
{
Expand Down

0 comments on commit eaf006d

Please sign in to comment.