Increase maximum tab list width to 350px (issue reported by Dan)
This commit is contained in:
parent
1a495d590e
commit
4b8304139a
@ -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
|
SYNC_ON_PAUSE = True # Client seek to global position - subtitles may disappear on some media players
|
||||||
PLAYLIST_MAX_CHARACTERS = 10000
|
PLAYLIST_MAX_CHARACTERS = 10000
|
||||||
PLAYLIST_MAX_ITEMS = 250
|
PLAYLIST_MAX_ITEMS = 250
|
||||||
|
MAXIMUM_TAB_WIDTH = 350
|
||||||
|
|
||||||
# Maximum character lengths (for client and server)
|
# Maximum character lengths (for client and server)
|
||||||
MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters
|
MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters
|
||||||
|
|||||||
@ -977,7 +977,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
|
|
||||||
def ensureTabListIsVisible(self):
|
def ensureTabListIsVisible(self):
|
||||||
self.stackedFrame.setFixedWidth(self.stackedFrame.width())
|
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)
|
self.tabListFrame.setFixedWidth(self.tabListFrame.width()+1)
|
||||||
|
|
||||||
def tabChange(self):
|
def tabChange(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user