This commit is contained in:
🪞👃🪞 2024-06-30 01:52:14 +03:00
parent 0ba14bf2da
commit 3ba5e253b0
5 changed files with 120 additions and 59 deletions

View file

@ -60,7 +60,7 @@ impl Launcher {
monitoring: true,
recording: false,
overdub: true,
cursor: (1, 1),
cursor: (2, 2),
position: 0,
scenes: scenes.unwrap_or_else(||vec![Scene::new(&"Scene 1", &[None])]),
tracks: if let Some(tracks) = tracks { tracks } else { vec![
@ -184,7 +184,7 @@ pub fn render (state: &Launcher, buf: &mut Buffer, mut area: Rect) -> Usually<Re
let mut y = y + 1;
y = y + LauncherGridView::new(
state, buf, Rect { x, y, width, height: 8 }, state.view.is_tracks()
).draw()?.height - 1;
).draw()?.height;
y = y + draw_section_sequencer(state, buf, Rect { x, y, width, height: 8 })?.height;
y = y + draw_section_chains(state, buf, Rect { x, y, width, height: 8 })?.height;
area.height = y;