forked from Wobbl/Wobuzz
Made the main Library not be a dock.
This commit is contained in:
parent
67f27c8a15
commit
a4d1d31e0b
7 changed files with 21 additions and 27 deletions
|
@ -13,11 +13,11 @@ class PlaylistView(QTreeWidget):
|
|||
|
||||
playing_mark = QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart)
|
||||
|
||||
def __init__(self, playlist, dock, parent=None):
|
||||
def __init__(self, playlist, library_widget, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.playlist = playlist
|
||||
self.library_dock = dock
|
||||
self.library_widget = library_widget
|
||||
|
||||
self.app = playlist.app
|
||||
|
||||
|
@ -25,7 +25,7 @@ class PlaylistView(QTreeWidget):
|
|||
self.header.setSectionsClickable(True)
|
||||
self.header.setSortIndicatorShown(True)
|
||||
|
||||
playlist.views[id(dock)] = self # let the playlist know that this view exists
|
||||
playlist.views[id(self.library_widget)] = self # let the playlist know that this view exists
|
||||
|
||||
self.setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue