add transport by default to standalone sequencer

This commit is contained in:
🪞👃🪞 2024-10-09 09:56:16 +03:00
parent 0eb063db1c
commit ec3eb40bb4
2 changed files with 2 additions and 3 deletions

View file

@ -22,7 +22,7 @@ impl SequencerCli {
focus: 0,
editor: PhraseEditor::new(),
phrases: Arc::new(RwLock::new(PhrasePool::new())),
transport: self.transport.unwrap_or(false).then_some(
transport: self.transport.unwrap_or(true).then_some(
Arc::new(RwLock::new(TransportToolbar::new(None)))
),
};

View file

@ -6,8 +6,7 @@ impl Content for Sequencer<Tui> {
add(&self.transport)?;
add(&self.phrases.clone()
.split(Direction::Right, 20, &self.editor as &dyn Widget<Engine = Tui>)
.min_y(20)
.fill_y())
.min_y(20))
})
}
}