From 4d386d97e0501a46cf35f4ae184a60cc234ede53 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sat, 22 Oct 2022 10:42:25 +0200 Subject: [PATCH] fixed scrolling in back_to_current_album --- src/mpdevil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mpdevil.py b/src/mpdevil.py index c125c54..be4f26c 100755 --- a/src/mpdevil.py +++ b/src/mpdevil.py @@ -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: - self._artist_list.select(song["albumartist"][0]) - self._artist_list.scroll_to_selected() - else: + 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._genre_list.select_all() self._genre_list.scroll_to_selected()