[gnome-music/wip/jfelder/searchbar-child: 1/11] headerbar: Correctly reset subtitle
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/searchbar-child: 1/11] headerbar: Correctly reset subtitle
- Date: Fri, 16 Nov 2018 00:26:22 +0000 (UTC)
commit c23c4cee4e5a904a4859aa53720d901fa5dac8b0
Author: Jean Felder <jfelder src gnome org>
Date: Thu Nov 15 20:43:43 2018 +0100
headerbar: Correctly reset subtitle
Reset headerbar's subtitle if the search child view is an
ArtistAlbumsWidget. Otherwise, it could display an artist name from a
previous view.
gnomemusic/views/searchview.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 8c275ecc..88eefe2d 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -157,6 +157,7 @@ class SearchView(BaseView):
self._headerbar.props.state = HeaderBar.State.SEARCH
self._headerbar.props.title = artist
+ self._headerbar.props.subtitle = ''
self.set_visible_child(self._artist_albums_widget)
self.props.search_state = Search.State.NONE
elif self.model[_iter][12] == 'song':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]