mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
wip
This commit is contained in:
parent
f48f17e9a4
commit
4ebecc2427
7 changed files with 107 additions and 71 deletions
|
|
@ -78,7 +78,7 @@ fn add_track (state: &mut Launcher) -> Usually<bool> {
|
|||
Ok(true)
|
||||
}
|
||||
fn delete_track (state: &mut Launcher) -> Usually<bool> {
|
||||
if state.cursor.0 >= 1 {
|
||||
if state.tracks.len() > 0 && state.cursor.0 >= 1 {
|
||||
state.tracks.remove(state.cursor.0 - 1);
|
||||
state.cursor.0 = state.cursor.0.min(state.tracks.len());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue