mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: fixing port autoconnect
This commit is contained in:
parent
6979fd67ec
commit
32dc708096
5 changed files with 98 additions and 94 deletions
|
|
@ -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.client().unregister_port(track.midi_out)?;
|
||||
track.midi_out.map(|port|app.client().unregister_port(port)).transpose()?;
|
||||
return Ok(true)
|
||||
}
|
||||
Ok(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue