Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Emit RecordingStarted event on recording start

Richie McIlroy8605747db8e4
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 73fb14a14..75e28a1cd 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -53,7 +53,7 @@ use crate::general_settings;
use crate::web_api::AuthedApiError;
use crate::{
App, CurrentRecordingChanged, FinalizingRecordings, MutableState, NewStudioRecordingAdded,
- RecordingState, RecordingStopped, VideoUploadInfo,
+ RecordingStarted, RecordingState, RecordingStopped, VideoUploadInfo,
api::PresignedS3PutRequestMethod,
audio::AppSounds,
auth::AuthStore,
@@ -901,6 +901,7 @@ pub async fn start_recording(
};
let _ = RecordingEvent::Started.emit(&app);
+ let _ = RecordingStarted.emit(&app);
spawn_actor({
let app = app.clone();