Implemented loading of tracks via the window's top menubar.

This commit is contained in:
The Wobbler 2025-02-28 17:28:14 +01:00
parent 66ee7d5af6
commit a9f07f0716
8 changed files with 73 additions and 28 deletions

View file

@ -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)