Prevent long player paths from making GuiConfig window too wide
This commit is contained in:
parent
f6414c39cc
commit
2ecd9e7877
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user