Implemented loading of tracks via the window's top menubar.
This commit is contained in:
parent
66ee7d5af6
commit
a9f07f0716
8 changed files with 73 additions and 28 deletions
|
@ -20,12 +20,12 @@ class PlaylistTabs(QTabWidget):
|
|||
self.setMovable(True)
|
||||
self.setAcceptDrops(True)
|
||||
|
||||
def addTab(self, widget, label):
|
||||
super().addTab(widget, None)
|
||||
def addTab(self, playlist_view, label):
|
||||
super().addTab(playlist_view, None)
|
||||
|
||||
index = self.tab_bar.count() - 1
|
||||
|
||||
title = TabTitle(self.app, label, self.tab_bar, index, widget)
|
||||
title = TabTitle(self.app, label, self.tab_bar, index, playlist_view)
|
||||
|
||||
self.tab_bar.setTabButton(index, QTabBar.ButtonPosition.RightSide, title)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue