fix(electron): sometimes pops up failed to save dialog (#11925)

fix AF-2557
This commit is contained in:
pengx17
2025-04-24 02:27:23 +00:00
parent 75d36a09e5
commit 7fceb4cbd1

View File

@@ -531,6 +531,7 @@ export function startRecording(
// set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION // set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION
setTimeout(() => { setTimeout(() => {
const state = recordingStateMachine.status$.value;
if ( if (
state?.status === 'recording' && state?.status === 'recording' &&
state.id === recordingStatus$.value?.id state.id === recordingStatus$.value?.id