fix(tek): still runs with error but now i can test it away
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
stop screaming 2026-02-20 01:07:17 +02:00
parent 2d7ca155e0
commit cb17cdb8bc
2 changed files with 6 additions and 6 deletions

View file

@ -425,7 +425,7 @@ pub mod tui {
BrowseTarget::ExportSample(_) => "Export sample:", BrowseTarget::ExportSample(_) => "Export sample:",
BrowseTarget::ImportClip(_) => "Import clip:", BrowseTarget::ImportClip(_) => "Import clip:",
BrowseTarget::ExportClip(_) => "Export 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") => { Some(":device") => {
let selected = self.dialog.device_kind().unwrap(); let selected = self.dialog.device_kind().unwrap();
to.place(&Bsp::s(Tui::bold(true, "Add device"), Map::south(1, 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: u8 { literal = |dsl|try_to_u8(dsl); });
namespace!(App: u16 { literal = |dsl|try_to_u16(dsl); symbol = |app| { namespace!(App: u16 { literal = |dsl|try_to_u16(dsl); symbol = |app| {
":w/sidebar" => app.project.w_sidebar(app.editor().is_some()), ":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: isize { literal = |dsl|try_to_isize(dsl); });
namespace!(App: usize { literal = |dsl|try_to_usize(dsl); symbol = |app| { namespace!(App: usize { literal = |dsl|try_to_usize(dsl); symbol = |app| {
":scene-count" => app.scenes().len(), ":scene-count" => app.scenes().len(),
@ -808,8 +808,8 @@ pub mod glue {
impl Default for AppCommand { fn default () -> Self { Self::Nop } } impl Default for AppCommand { fn default () -> Self { Self::Nop } }
impl ScenesView for App { impl ScenesView for App {
fn w_side (&self) -> u16 { 20 } fn w_side (&self) -> u16 { 20 }
fn w_mid (&self) -> u16 { (self.width() as u16).saturating_sub(self.w_side()) } fn w_mid (&self) -> u16 { (self.measure_width() as u16).saturating_sub(self.w_side()) }
fn h_scenes (&self) -> u16 { (self.height() as u16).saturating_sub(20) } 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 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 } } 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) { if matches!(self.action, Action::Headless) {
println!("todo headless"); println!("todo headless");
} else { } else {
return Tui::new()?.run(&client) Tui::run(&client)?;
} }
} }
} }

2
deps/tengri vendored

@ -1 +1 @@
Subproject commit 090546b2d6fba3beb69b8ff65b30e5492d8a7b66 Subproject commit ce2eeaee7fc23c3f3683cee310a9117d764409cb