down to 3 errors

This commit is contained in:
🪞👃🪞 2025-05-14 14:56:12 +03:00
parent ebdb8881e9
commit 8df49850ae
7 changed files with 84 additions and 81 deletions

View file

@ -14,16 +14,6 @@ impl ArrangementCommand {
/// Set the selection
fn select (arranger: &mut Arrangement, s: Option<Selection>) -> Perhaps<Self> {
arranger.selected = s;
// autoedit: load focused clip in editor.
if let Some(ref mut editor) = arranger.editor {
editor.set_clip(match arranger.selected {
Some(Selection::TrackClip { track, scene })
if let Some(Some(Some(clip))) = arranger
.scenes.get(scene)
.map(|s|s.clips.get(track)) => Some(clip),
_ => None
});
}
Ok(None)
}
/// Launch a clip or scene