From cb17cdb8bc20f8ecac0b7dd168617ac08c8732b1 Mon Sep 17 00:00:00 2001 From: stop screaming Date: Fri, 20 Feb 2026 01:07:17 +0200 Subject: [PATCH] fix(tek): still runs with error but now i can test it away --- app/tek.rs | 10 +++++----- deps/tengri | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/tek.rs b/app/tek.rs index 9b474c77..11cb8652 100644 --- a/app/tek.rs +++ b/app/tek.rs @@ -425,7 +425,7 @@ pub mod tui { BrowseTarget::ExportSample(_) => "Export sample:", BrowseTarget::ImportClip(_) => "Import clip:", BrowseTarget::ExportClip(_) => "Export clip:", - }, Shrink::X(3, Fixed::Y(1, Tui::fg(Tui::g(96), RepeatH("🭻")))))))), + }, Shrink::X(3, Fixed::Y(1, Tui::fg(Tui::g(96), Repeat::X("🭻")))))))), Some(":device") => { let selected = self.dialog.device_kind().unwrap(); to.place(&Bsp::s(Tui::bold(true, "Add device"), Map::south(1, @@ -510,7 +510,7 @@ pub mod ns { namespace!(App: u8 { literal = |dsl|try_to_u8(dsl); }); namespace!(App: u16 { literal = |dsl|try_to_u16(dsl); symbol = |app| { ":w/sidebar" => app.project.w_sidebar(app.editor().is_some()), - ":h/sample-detail" => 6.max(app.height() as u16 * 3 / 9), }; }); + ":h/sample-detail" => 6.max(app.measure_height() as u16 * 3 / 9), }; }); namespace!(App: isize { literal = |dsl|try_to_isize(dsl); }); namespace!(App: usize { literal = |dsl|try_to_usize(dsl); symbol = |app| { ":scene-count" => app.scenes().len(), @@ -808,8 +808,8 @@ pub mod glue { impl Default for AppCommand { fn default () -> Self { Self::Nop } } impl ScenesView for App { fn w_side (&self) -> u16 { 20 } - fn w_mid (&self) -> u16 { (self.width() as u16).saturating_sub(self.w_side()) } - fn h_scenes (&self) -> u16 { (self.height() as u16).saturating_sub(20) } + fn w_mid (&self) -> u16 { (self.measure_width() as u16).saturating_sub(self.w_side()) } + fn h_scenes (&self) -> u16 { (self.measure_height() as u16).saturating_sub(20) } } impl Default for MenuItem { fn default () -> Self { Self("".into(), Arc::new(Box::new(|_|Ok(())))) } } impl PartialEq for MenuItem { fn eq (&self, other: &Self) -> bool { self.0 == other.0 } } @@ -950,7 +950,7 @@ pub mod glue { if matches!(self.action, Action::Headless) { println!("todo headless"); } else { - return Tui::new()?.run(&client) + Tui::run(&client)?; } } } diff --git a/deps/tengri b/deps/tengri index 090546b2..ce2eeaee 160000 --- a/deps/tengri +++ b/deps/tengri @@ -1 +1 @@ -Subproject commit 090546b2d6fba3beb69b8ff65b30e5492d8a7b66 +Subproject commit ce2eeaee7fc23c3f3683cee310a9117d764409cb