mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
down to 3 errors
This commit is contained in:
parent
ebdb8881e9
commit
8df49850ae
7 changed files with 84 additions and 81 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue