mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
add transport by default to standalone sequencer
This commit is contained in:
parent
0eb063db1c
commit
ec3eb40bb4
2 changed files with 2 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ impl SequencerCli {
|
||||||
focus: 0,
|
focus: 0,
|
||||||
editor: PhraseEditor::new(),
|
editor: PhraseEditor::new(),
|
||||||
phrases: Arc::new(RwLock::new(PhrasePool::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)))
|
Arc::new(RwLock::new(TransportToolbar::new(None)))
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ impl Content for Sequencer<Tui> {
|
||||||
add(&self.transport)?;
|
add(&self.transport)?;
|
||||||
add(&self.phrases.clone()
|
add(&self.phrases.clone()
|
||||||
.split(Direction::Right, 20, &self.editor as &dyn Widget<Engine = Tui>)
|
.split(Direction::Right, 20, &self.editor as &dyn Widget<Engine = Tui>)
|
||||||
.min_y(20)
|
.min_y(20))
|
||||||
.fill_y())
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue