wip: refactor pt.37 (30e) halp!

This commit is contained in:
🪞👃🪞 2024-11-15 12:22:36 +01:00
parent 92bcd19925
commit 4b2f8935d3
3 changed files with 56 additions and 46 deletions

View file

@ -71,10 +71,12 @@ pub trait ArrangerSceneApi: Sized {
.all(|(track_index, clip)|match clip {
Some(clip) => tracks
.get(track_index)
.map(|track|if let Some((_, Some(phrase))) = track.player().phrase() {
*phrase.read().unwrap() == *clip.read().unwrap()
} else {
false
.map(|track|{
if let Some((_, Some(phrase))) = track.player().phrase() {
*phrase.read().unwrap() == *clip.read().unwrap()
} else {
false
}
})
.unwrap_or(false),
None => true