mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
replace old Split component
This commit is contained in:
parent
e845d252b7
commit
60406e1d32
9 changed files with 141 additions and 107 deletions
|
|
@ -33,10 +33,11 @@ impl<E: Engine> Audio for Mixer<E> {
|
|||
impl Content for Mixer<Tui> {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||
let mut tracks = Split::right();
|
||||
for channel in self.tracks.iter() {
|
||||
tracks = tracks.add_ref(channel)
|
||||
}
|
||||
tracks
|
||||
Split::right(|add| {
|
||||
for channel in self.tracks.iter() {
|
||||
add(channel)?;
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue