Преглед изворни кода

Fix swapped artist and title in music widget

Thomas Dy пре 7 година
родитељ
комит
b02bccae13
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/widgets/music.rs

+ 1 - 1
src/widgets/music.rs

@@ -43,7 +43,7 @@ impl Mpd {
     fn get_text(&self) -> String {
         match self.song {
             Some(ref song) => match (&song.title, &song.tags.get("Artist")) {
-                (&Some(ref title), &Some(ref artist)) => format!("{} - {}", title, artist),
+                (&Some(ref title), &Some(ref artist)) => format!("{} - {}", artist, title),
                 (&Some(ref title), &None) => title.to_string(),
                 _ => {
                     let path = Path::new(&song.file);