mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed live cover resize
This commit is contained in:
parent
9d57c308b7
commit
10ab41ad2e
@ -1236,11 +1236,11 @@ class MainCover(Gtk.EventBox):
|
|||||||
self.add(self.cover)
|
self.add(self.cover)
|
||||||
|
|
||||||
def refresh(self, *args):
|
def refresh(self, *args):
|
||||||
current_song=self.client.currentsong()
|
try:
|
||||||
if current_song == {}:
|
current_song=self.client.currentsong()
|
||||||
song_file=None
|
|
||||||
else:
|
|
||||||
song_file=current_song['file']
|
song_file=current_song['file']
|
||||||
|
except:
|
||||||
|
song_file=None
|
||||||
self.cover.set_from_pixbuf(Cover(lib_path=self.settings.get_value("paths")[self.settings.get_int("active-profile")], song_file=song_file).get_pixbuf(self.settings.get_int("track-cover")))
|
self.cover.set_from_pixbuf(Cover(lib_path=self.settings.get_value("paths")[self.settings.get_int("active-profile")], song_file=song_file).get_pixbuf(self.settings.get_int("track-cover")))
|
||||||
|
|
||||||
def clear(self, *args):
|
def clear(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user