Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): hide in-progress window before awaiting stop

Richie McIlroy97f0c230ea77
diff --git a/apps/desktop/src/routes/in-progress-recording.tsx b/apps/desktop/src/routes/in-progress-recording.tsx
index af7589b43..396850373 100644
--- a/apps/desktop/src/routes/in-progress-recording.tsx
+++ b/apps/desktop/src/routes/in-progress-recording.tsx
@@ -412,9 +412,9 @@ function InProgressRecordingInner() {
const stopRecording = createMutation(() => ({
mutationFn: async () => {
setStopRequested(true);
+ await commands.stopRecording();
setState({ variant: "stopped" });
void getCurrentWindow().hide();
- await commands.stopRecording();
},
onError: () => {
setStopRequested(false);