Added unique names on playlist rename.

This commit is contained in:
The Wobbler 2025-01-27 18:32:41 +01:00
parent b95081e840
commit a8560add65
3 changed files with 12 additions and 5 deletions

View file

@ -8,10 +8,11 @@ from .tab_title import TabTitle
class PlaylistTabs(QTabWidget):
def __init__(self, library, parent=None):
self.library = library
super().__init__(parent)
self.library = library
self.app = library.app
self.tab_bar = PlaylistTabBar(self)
self.setTabBar(self.tab_bar)
self.setDocumentMode(True)
@ -24,7 +25,7 @@ class PlaylistTabs(QTabWidget):
index = self.tab_bar.count() - 1
title = TabTitle(label, self.tab_bar, index, widget)
title = TabTitle(self.app, label, self.tab_bar, index, widget)
self.tab_bar.setTabButton(index, QTabBar.ButtonPosition.RightSide, title)