Skip to content

Commit

Permalink
Update ProcessManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Jun 27, 2022
1 parent 8bdee00 commit 97245b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions RevitPythonShell/Helpers/ProcessManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ private static void SetActivateWindow(object sender, CancelEventArgs e)
/// Set process revert use revit
/// </summary>
/// <returns></returns>
public static bool SetActivateWindow()
public static void SetActivateWindow()
{
IntPtr ptr = GetActivateWindow();
if (ptr != IntPtr.Zero)
{
return SetForegroundWindow(ptr);
SetForegroundWindow(ptr);
}
return false;
}

/// <summary>
Expand Down

0 comments on commit 97245b7

Please sign in to comment.