Skip to content

Commit

Permalink
Update AudioWorkspaceView.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarabia committed Nov 1, 2024
1 parent 16ba002 commit bb936dd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,14 @@ class AudioWorkspaceViewModel : ViewModel() {
audioPositionProperty.bind(narrationViewModel.audioFramePositionProperty)

Bindings.bindContent(totalVerses, narrationViewModel.totalVerses)
val disposable = narrationViewModel.narratableList.onChangeWithDisposer {
narrationViewModel.narratableList.onChangeWithDisposer {
val verseMarkersList = narrationViewModel.narratableList.filter {
it.hasRecording && it.marker != null
}
synchronized(recordedVerses) {
recordedVerses.setAll(verseMarkersList)
}
}
disposables.add(disposable)
}.also { disposables.add(it) }
}

fun onUndock() {
Expand Down

0 comments on commit bb936dd

Please sign in to comment.