fix: Properly set isStartingRecording for video recording

This commit is contained in:
Myzel394 2023-12-17 21:54:22 +01:00
parent e719c0f8fb
commit 12311d392b
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -42,8 +42,12 @@ class VideoRecorderModel :
// so we only want to actually start the recording if the service is idle and thus
// not already recording
if (service.state == RecorderState.IDLE) {
isStartingRecording = true
service.clearAllRecordings()
service.startRecording()
} else {
isStartingRecording = false
}
service.onCameraControlAvailable = {