mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed scrolling in back_to_current_album
This commit is contained in:
parent
1bd340927c
commit
4d386d97e0
@ -2193,11 +2193,11 @@ class Browser(Gtk.Paned):
|
||||
song=self._client.currentsong()
|
||||
artist,genre=self._artist_list.get_artist_selected()
|
||||
if genre is None or song["genre"][0] == genre:
|
||||
if artist is not None and song["albumartist"][0] != artist:
|
||||
if artist is None or song["albumartist"][0] == artist:
|
||||
self._album_list.scroll_to_current_album()
|
||||
else:
|
||||
self._artist_list.select(song["albumartist"][0])
|
||||
self._artist_list.scroll_to_selected()
|
||||
else:
|
||||
self._album_list.scroll_to_current_album()
|
||||
else:
|
||||
self._genre_list.select_all()
|
||||
self._genre_list.scroll_to_selected()
|
||||
|
Loading…
Reference in New Issue
Block a user