groovebox: reenable pool

This commit is contained in:
🪞👃🪞 2025-05-14 17:39:51 +03:00
parent 872c2d94d6
commit d7bbc2a412
6 changed files with 73 additions and 94 deletions

View file

@ -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()
}

View file

@ -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()))