Prevent long player paths from making GuiConfig window too wide

This commit is contained in:
et0h 2019-05-19 18:29:00 +01:00
parent f6414c39cc
commit 2ecd9e7877
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ FALLBACK_PUBLIC_SYNCPLAY_SERVERS = [
['syncplay.pl:8999 (France)', 'syncplay.pl:8999']]
PLAYLIST_LOAD_NEXT_FILE_MINIMUM_LENGTH = 10 # Seconds
PLAYLIST_LOAD_NEXT_FILE_TIME_FROM_END_THRESHOLD = 5 # Seconds (only triggered if file is paused, e.g. due to EOF)
EXECUTABLE_COMBOBOX_MINIMUM_LENGTH = 30 # Minimum number of characters that the combobox will make visible
# Overriden by config
SHOW_OSD = True # Sends Syncplay messages to media player OSD

View File

@ -657,6 +657,8 @@ class ConfigDialog(QtWidgets.QDialog):
self.executablepathLabel.setObjectName("executable-path")
self.executablepathCombobox.setObjectName("executable-path")
self.executablepathCombobox.setMinimumContentsLength(constants.EXECUTABLE_COMBOBOX_MINIMUM_LENGTH)
self.executablepathCombobox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon)
self.mediapathLabel.setObjectName("media-path")
self.mediapathTextbox.setObjectName(constants.LOAD_SAVE_MANUALLY_MARKER + "media-path")
self.playerargsLabel.setObjectName("player-arguments")