Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mouse click effect capability for screen recording #7622

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
fix formatting
  • Loading branch information
Vertygo committed Oct 15, 2024
commit e45f45d2929d604996793a88bfb0f65bf29ec809
8 changes: 4 additions & 4 deletions ShareX/ScreenRecordManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public static void AbortRecording()
recordForm.AbortRecording();
}

if (IsRecording && mouseClickEffectManager != null)
if (IsRecording)
{
mouseClickEffectManager.Stop();
mouseClickEffectManager?.Stop();
}
}

Expand Down Expand Up @@ -277,7 +277,7 @@ private static void StartRecording(ScreenRecordOutput outputType, TaskSettings t
}

recordForm.ChangeState(ScreenRecordState.AfterStart);
mouseClickEffectManager.Resume();
mouseClickEffectManager?.Resume();

captureRectangle = recordForm.RecordingRegion;

Expand Down Expand Up @@ -350,7 +350,7 @@ private static void StartRecording(ScreenRecordOutput outputType, TaskSettings t
screenRecorder = null;
}

if(mouseClickEffectManager != null)
if (mouseClickEffectManager != null)
{
mouseClickEffectManager.Stop();
mouseClickEffectManager = null;
Expand Down