mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Cross platform track paths
This commit is contained in:
parent
0149da36e6
commit
83789709ad
7 changed files with 102 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue