[gnome-music/wip/jfelder/grilo-misc-cleanups: 2/7] songsview: Remove unnecessary tracker available check



commit 2e2d980760f4b6bdf180ab0a672dcb8dee480631
Author: Jean Felder <jfelder src gnome org>
Date:   Thu May 2 11:30:50 2019 +0200

    songsview: Remove unnecessary tracker available check
    
    The _populate method can only be called if the tracker plugin of grilo
    is available; this logic is handled by the BaseView class. Therefore,
    the grilo.tracker check in the _populate method is unneeded.

 gnomemusic/views/songsview.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/views/songsview.py b/gnomemusic/views/songsview.py
index 32a8f46d..d1e4c194 100644
--- a/gnomemusic/views/songsview.py
+++ b/gnomemusic/views/songsview.py
@@ -279,9 +279,8 @@ class SongsView(BaseView):
     def _populate(self, data=None):
         """Populates the view"""
         self._init = True
-        if grilo.tracker:
-            self._window.notifications_popup.push_loading()
-            grilo.populate_songs(self._offset, self._add_item)
+        self._window.notifications_popup.push_loading()
+        grilo.populate_songs(self._offset, self._add_item)
 
     @log
     def get_selected_songs(self, callback=None):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]