Skip to content

Commit 97245b7

Browse files
committed
Update ProcessManager.cs
1 parent 8bdee00 commit 97245b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

RevitPythonShell/Helpers/ProcessManager.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ private static void SetActivateWindow(object sender, CancelEventArgs e)
3232
/// Set process revert use revit
3333
/// </summary>
3434
/// <returns></returns>
35-
public static bool SetActivateWindow()
35+
public static void SetActivateWindow()
3636
{
3737
IntPtr ptr = GetActivateWindow();
3838
if (ptr != IntPtr.Zero)
3939
{
40-
return SetForegroundWindow(ptr);
40+
SetForegroundWindow(ptr);
4141
}
42-
return false;
4342
}
4443

4544
/// <summary>

0 commit comments

Comments
 (0)