Skip to content

Commit

Permalink
fix: Do not check for windows while recording
Browse files Browse the repository at this point in the history
  • Loading branch information
lulzsun committed Dec 4, 2024
1 parent ab56d6f commit 001aa57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Services/DetectionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public static void Stop() {
}

public static void WindowCreation(IntPtr hwnd, int processId = 0, [CallerMemberName] string memberName = "") {
if (RecordingService.IsRecording)
return;

if (processId == 0 && hwnd != 0)
WindowService.GetWindowThreadProcessId(hwnd, out processId);
else if (processId == 0 && hwnd == 0)
Expand Down

0 comments on commit 001aa57

Please sign in to comment.