diff --git a/syncplay/constants.py b/syncplay/constants.py index b010a1d..189693c 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -54,6 +54,7 @@ DO_NOT_RESET_POSITION_THRESHOLD = 1.0 SYNC_ON_PAUSE = True # Client seek to global position - subtitles may disappear on some media players PLAYLIST_MAX_CHARACTERS = 10000 PLAYLIST_MAX_ITEMS = 250 +MAXIMUM_TAB_WIDTH = 350 # Maximum character lengths (for client and server) MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index 5d6c77b..d8e832a 100644 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -977,7 +977,7 @@ class ConfigDialog(QtGui.QDialog): def ensureTabListIsVisible(self): self.stackedFrame.setFixedWidth(self.stackedFrame.width()) - while self.tabListWidget.horizontalScrollBar().isVisible() and self.tabListFrame.width() < 200: + while self.tabListWidget.horizontalScrollBar().isVisible() and self.tabListFrame.width() < constants.MAXIMUM_TAB_WIDTH: self.tabListFrame.setFixedWidth(self.tabListFrame.width()+1) def tabChange(self):