Cross platform track paths

This commit is contained in:
Elias Projahn 2025-03-30 10:52:27 +02:00
parent 0149da36e6
commit 83789709ad
7 changed files with 102 additions and 17 deletions

View file

@ -149,7 +149,7 @@ impl TracksEditorTrackRow {
obj.set_subtitle(&match &track_data.location {
TrackLocation::Undefined => String::new(),
TrackLocation::Library(track) => track.path.clone(),
TrackLocation::Library(track) => track.path.to_string_lossy().into_owned(),
TrackLocation::System(path) => {
let format_string = gettext("Import from {}");
let file_name = path.file_name().unwrap().to_str().unwrap();