big flat pt.13: fixed warnings, let's see what it has in store

This commit is contained in:
🪞👃🪞 2024-12-30 21:52:20 +01:00
parent e21ef1af94
commit 5bc3517dde
13 changed files with 68 additions and 45 deletions

View file

@ -37,7 +37,8 @@ pub struct GrooveboxCli {
impl GrooveboxCli {
fn run (&self) -> Usually<()> {
let name = self.name.as_deref().unwrap_or("tek_groovebox");
Tui::run(JackConnection::new(name)?.activate_with(|jack|{
let engine = Tui::new()?;
let state = JackConnection::new(name)?.activate_with(|jack|{
let app = tek::Groovebox::new(
jack,
&self.midi_from.as_slice(),
@ -58,8 +59,8 @@ impl GrooveboxCli {
})?
}
Ok(app)
})?)?;
Ok(())
})?;
engine.run(&state)
}
}