mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed window title when no song is playing
This commit is contained in:
parent
931f27763a
commit
2cf05fc308
@ -2977,7 +2977,10 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||
|
||||
def on_file_changed(self, *args):
|
||||
try:
|
||||
song=self.client.extend_song_for_display(self.client.song_to_str_dict(self.client.currentsong()))
|
||||
song=self.client.currentsong()
|
||||
if song == {}:
|
||||
raise ValueError("Song out of range")
|
||||
song=self.client.extend_song_for_display(self.client.song_to_str_dict(song))
|
||||
if song["date"] != "":
|
||||
date=" ("+song["date"]+")"
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user