Commit 9fc67e3e authored by Jesus Bermudez Velazquez's avatar Jesus Bermudez Velazquez Committed by Jean Felder

Rename playlistview to playlistsview

For consistency, rename PlaylistView to PlaylistsView.
The rest of views names are in plural:

- AlbumsView
- ArtistsView
- SongsView

Closes: #290
parent e56bb27e
Pipeline #85485 passed with stages
in 7 minutes and 52 seconds
......@@ -41,11 +41,11 @@ import gnomemusic.utils as utils
playlists = Playlists.get_default()
class PlaylistView(BaseView):
class PlaylistsView(BaseView):
"""Main view for playlists"""
def __repr__(self):
return '<PlaylistView>'
return '<PlaylistsView>'
@log
def __init__(self, window, player):
......
......@@ -39,7 +39,7 @@ from gnomemusic.views.artistsview import ArtistsView
from gnomemusic.views.emptyview import EmptyView
from gnomemusic.views.searchview import SearchView
from gnomemusic.views.songsview import SongsView
from gnomemusic.views.playlistview import PlaylistView
from gnomemusic.views.playlistsview import PlaylistsView
from gnomemusic.widgets.headerbar import HeaderBar
from gnomemusic.widgets.notificationspopup import NotificationsPopup # noqa
from gnomemusic.widgets.playertoolbar import PlayerToolbar
......@@ -249,7 +249,7 @@ class Window(Gtk.ApplicationWindow):
self.views[View.ALBUM] = AlbumsView(self, self._player)
self.views[View.ARTIST] = ArtistsView(self, self._player)
self.views[View.SONG] = SongsView(self, self._player)
self.views[View.PLAYLIST] = PlaylistView(self, self._player)
self.views[View.PLAYLIST] = PlaylistsView(self, self._player)
self.views[View.SEARCH] = SearchView(self, self._player)
selectable_views = [View.ALBUM, View.ARTIST, View.SONG, View.SEARCH]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment