Skip to main content

discard_recording

Function discard_recording 

Source
pub fn discard_recording(
    recording_state: State<'_, RecordingState>,
) -> Result<(), String>
Expand description

Discard the pending recording — delete its scratch file and clear the awaiting-export state (M-SAVE.1). No-op when nothing is pending; a missing / unremovable scratch is logged, not surfaced. Returns Result (always Ok today) to keep the IPC signature stable.