fix: Use splice instead of remove to remove udef behavior

This commit is contained in:
Fabio Lenherr / DashieTM 2023-12-17 21:48:25 +01:00
parent c3fa24ddc8
commit e0a672935e
3 changed files with 150 additions and 54 deletions

View file

@ -470,7 +470,7 @@ pub fn start_input_box_listener(conn: Connection, source_box: Arc<SourceBox>) ->
}
for entry in 0..*index {
if model_list.string(entry) == Some(alias.clone().into()) {
model_list.remove(entry);
model_list.splice(entry, 1, &[]);
break;
}
}