0.1.17 upd
This commit is contained in:
parent
48cd7b20c7
commit
1d40207b7b
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.16"
|
version = "0.1.17"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -159,9 +159,10 @@ impl XTrackItem {
|
|||||||
self.args.iter().find(|t| t.arg_type == id).map_or(String::new(), |t| t.val.clone())
|
self.args.iter().find(|t| t.arg_type == id).map_or(String::new(), |t| t.val.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_arg(&mut self, id: u32, val: String) {
|
pub fn update_arg(&mut self, id: u32, val: String) {
|
||||||
self.args.retain(|t| t.arg_type != id);
|
self.args.retain(|t| t.arg_type != id);
|
||||||
self.args.push(XArgument { arg_type: id, val});
|
self.args.push(XArgument { arg_type: id, val});
|
||||||
|
self.data.number_of_strings = self.args.len() as u32;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user