Fixed track art

This commit is contained in:
Ultradesu
2026-07-17 00:00:34 +03:00
parent eb8ed966f1
commit 73ee4dab9d
6 changed files with 136 additions and 15 deletions
+2
View File
@@ -215,12 +215,14 @@ fn save_edit(
if artists.is_empty() {
return Err("at least one artist is required".to_string());
}
let cover_path = value("Cover path");
let edit = TrackEdit {
title,
artists,
featured_artists: names("Featured"),
track_number: number("Track #")?,
disc_number: number("Disc #")?,
cover_path: (!cover_path.is_empty()).then_some(cover_path),
};
library.update_track(id, &edit)
}
+1
View File
@@ -422,6 +422,7 @@ fn track_edit_popup(track: &TrackItem) -> super::state::Popup {
"Disc #",
track.disc_number.map(|n| n.to_string()).unwrap_or_default(),
),
EditField::new("Cover path", track.cover_path.clone().unwrap_or_default()),
],
focus: 0,
error: None,