mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
groovebox: reenable pool
This commit is contained in:
parent
872c2d94d6
commit
d7bbc2a412
6 changed files with 73 additions and 94 deletions
|
|
@ -171,15 +171,15 @@ content!(TuiOut: |self: Message| match self { Self::FailedToAddDevice => "Failed
|
|||
|
||||
#[tengri_proc::expose]
|
||||
impl App {
|
||||
fn _todo_u16_stub (&self) -> u16 {
|
||||
todo!()
|
||||
}
|
||||
fn _todo_isize_stub (&self) -> isize {
|
||||
todo!()
|
||||
}
|
||||
fn _todo_item_theme_stub (&self) -> ItemTheme {
|
||||
todo!()
|
||||
}
|
||||
fn w_sidebar (&self) -> u16 {
|
||||
self.project.w_sidebar(self.editor.is_some())
|
||||
}
|
||||
fn focus_editor (&self) -> bool {
|
||||
self.is_editing()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,7 @@ impl App {
|
|||
ArrangerView::new(&self.project, self.editor.as_ref())
|
||||
}
|
||||
pub fn view_pool (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
let is_editing = self.is_editing();
|
||||
Fixed::x(self.project.w_sidebar(is_editing),
|
||||
PoolView(is_editing, &self.project.pool))
|
||||
PoolView(&self.project.pool)
|
||||
}
|
||||
pub fn view_samples_keys (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.project.sampler().map(|s|s.view_list(false, self.editor().unwrap()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue