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

@ -47,13 +47,27 @@ handle!(TuiIn: |self: App, input|Ok(if let Some(command) = self.config.keys.comm
Ok(None)
}
fn select (app: &mut App, selection: Selection) -> Perhaps<Self> {
app.select(selection);
app.arranger.select(selection);
if let Some(ref mut editor) = app.editor {
editor.set_clip(match app.arranger.selected {
Some(Selection::TrackClip { track, scene })
if let Some(Some(Some(clip))) = app
.arranger
.scenes.get(scene)
.map(|s|s.clips.get(track))
=>
Some(clip),
_ =>
None
});
}
Ok(None)
//("select" [t: usize, s: usize] Some(match (t.expect("no track"), s.expect("no scene")) {
//(0, 0) => Self::Select(Selection::Mix),
//(t, 0) => Self::Select(Selection::Track(t)),
//(0, s) => Self::Select(Selection::Scene(s)),
//(t, s) => Self::Select(Selection::TrackClip { track: t, scene: s }) })))
// autoedit: load focused clip in editor.
}
fn stop_all (app: &mut App) -> Perhaps<Self> {
app.stop_all();