[gnome-music/wip/mschraal/window-selection-mode: 2/7] baseview: Remove duplicated functionality



commit 00d12e445c3865d3707ca859ca21b363c1bd67e5
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Aug 31 00:06:05 2018 +0200

    baseview: Remove duplicated functionality

 gnomemusic/views/baseview.py     | 8 --------
 gnomemusic/views/playlistview.py | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index 87be32ed..6eb2b68b 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -196,11 +196,3 @@ class BaseView(Gtk.Stack):
         self._set_selection(False)
         self._selection_toolbar.props.items_selected = 0
         self._header_bar.props.items_selected = 0
-
-    @log
-    def set_player_visible(self, visible):
-        """Set PlayWidget action visibility
-
-        :param bool visible: Set actionbar visibility
-        """
-        self._window.player_toolbar.set_visible(visible)
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index e285431f..037156ce 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -679,7 +679,7 @@ class PlaylistView(BaseView):
         if self.player.playing_playlist(
                 PlayerPlaylist.Type.PLAYLIST, playlist_id):
             self.player.stop()
-            self.set_player_visible(False)
+            self._window.set_player_visible(False)
 
         if row_next:
             self._sidebar.select_row(row_next)


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