mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
refactor app/jack init
This commit is contained in:
parent
117f4d5363
commit
23d9910399
7 changed files with 166 additions and 80 deletions
|
|
@ -166,12 +166,12 @@ fn focus_prev (app: &mut App) -> Usually<bool> {
|
|||
Ok(true)
|
||||
}
|
||||
|
||||
fn increment (app: &mut App) -> Usually<bool> {
|
||||
fn increment (_: &mut App) -> Usually<bool> {
|
||||
Ok(false)
|
||||
}
|
||||
|
||||
|
||||
fn decrement (app: &mut App) -> Usually<bool> {
|
||||
fn decrement (_: &mut App) -> Usually<bool> {
|
||||
Ok(false)
|
||||
}
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ fn delete_track (app: &mut App) -> Usually<bool> {
|
|||
if app.tracks.len() > 0 {
|
||||
let track = app.tracks.remove(app.track_cursor);
|
||||
app.track_cursor = app.track_cursor.saturating_sub(1);
|
||||
app.jack.as_ref().unwrap().as_client().unregister_port(track.midi_out)?;
|
||||
app.client().unregister_port(track.midi_out)?;
|
||||
return Ok(true)
|
||||
}
|
||||
Ok(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue