mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed lyrics fetching when no song is playing
This commit is contained in:
parent
0c9635921d
commit
08ff73d797
@ -1626,7 +1626,8 @@ class LyricsWindow(Gtk.Window): #Lyrics view with own client because MPDClient i
|
|||||||
while not self.stop:
|
while not self.stop:
|
||||||
if self.client.connected():
|
if self.client.connected():
|
||||||
cs=self.client.currentsong()
|
cs=self.client.currentsong()
|
||||||
cs.pop("pos") #avoid unnecessary reloads caused by position change of current title
|
if not cs == {}:
|
||||||
|
cs.pop("pos") #avoid unnecessary reloads caused by position change of current title
|
||||||
if cs != self.current_song:
|
if cs != self.current_song:
|
||||||
GLib.idle_add(update_label, _("searching..."))
|
GLib.idle_add(update_label, _("searching..."))
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user