Rename autoplayInitialThreshold to autoplayMinUsers
This commit is contained in:
parent
88bada4f15
commit
4739a3b7ed
@ -47,7 +47,7 @@ class ConfigurationGetter(object):
|
|||||||
"readyAtStart": False,
|
"readyAtStart": False,
|
||||||
"alwaysUnpause": False,
|
"alwaysUnpause": False,
|
||||||
"autoplayInitialState" : None,
|
"autoplayInitialState" : None,
|
||||||
"autoplayInitialThreshold" : -1,
|
"autoplayMinUsers" : -1,
|
||||||
"clearGUIData": False,
|
"clearGUIData": False,
|
||||||
"language" : "",
|
"language" : "",
|
||||||
"checkForUpdatesAutomatically" : None,
|
"checkForUpdatesAutomatically" : None,
|
||||||
@ -109,12 +109,12 @@ class ConfigurationGetter(object):
|
|||||||
"slowdownThreshold",
|
"slowdownThreshold",
|
||||||
"rewindThreshold",
|
"rewindThreshold",
|
||||||
"fastforwardThreshold",
|
"fastforwardThreshold",
|
||||||
"autoplayInitialThreshold",
|
"autoplayMinUsers",
|
||||||
]
|
]
|
||||||
|
|
||||||
self._iniStructure = {
|
self._iniStructure = {
|
||||||
"server_data": ["host", "port", "password"],
|
"server_data": ["host", "port", "password"],
|
||||||
"client_settings": ["name", "room", "playerPath", "slowdownThreshold", "rewindThreshold", "fastforwardThreshold", "slowOnDesync", "rewindOnDesync", "fastforwardOnDesync", "dontSlowDownWithMe", "forceGuiPrompt", "filenamePrivacyMode", "filesizePrivacyMode", "pauseOnLeave", "readyAtStart", "alwaysUnpause", "autoplayInitialThreshold", "autoplayInitialState"],
|
"client_settings": ["name", "room", "playerPath", "slowdownThreshold", "rewindThreshold", "fastforwardThreshold", "slowOnDesync", "rewindOnDesync", "fastforwardOnDesync", "dontSlowDownWithMe", "forceGuiPrompt", "filenamePrivacyMode", "filesizePrivacyMode", "pauseOnLeave", "readyAtStart", "alwaysUnpause", "autoplayMinUsers", "autoplayInitialState"],
|
||||||
"gui": ["showOSD", "showOSDWarnings", "showSlowdownOSD", "showDifferentRoomOSD", "showSameRoomOSD", "showNonControllerOSD", "showDurationNotification"],
|
"gui": ["showOSD", "showOSDWarnings", "showSlowdownOSD", "showDifferentRoomOSD", "showSameRoomOSD", "showNonControllerOSD", "showDurationNotification"],
|
||||||
"general": ["language", "checkForUpdatesAutomatically", "lastCheckedForUpdates"]
|
"general": ["language", "checkForUpdatesAutomatically", "lastCheckedForUpdates"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,9 +92,9 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
self.autoplayPushButton.blockSignals(True)
|
self.autoplayPushButton.blockSignals(True)
|
||||||
self.autoplayPushButton.setChecked(autoplayInitialState)
|
self.autoplayPushButton.setChecked(autoplayInitialState)
|
||||||
self.autoplayPushButton.blockSignals(False)
|
self.autoplayPushButton.blockSignals(False)
|
||||||
if self.config['autoplayInitialThreshold'] > 1:
|
if self.config['autoplayMinUsers'] > 1:
|
||||||
self.autoplayThresholdSpinbox.blockSignals(True)
|
self.autoplayThresholdSpinbox.blockSignals(True)
|
||||||
self.autoplayThresholdSpinbox.setValue(self.config['autoplayInitialThreshold'])
|
self.autoplayThresholdSpinbox.setValue(self.config['autoplayMinUsers'])
|
||||||
self.autoplayThresholdSpinbox.blockSignals(False)
|
self.autoplayThresholdSpinbox.blockSignals(False)
|
||||||
self.changeAutoplayState()
|
self.changeAutoplayState()
|
||||||
self.changeAutoplayThreshold()
|
self.changeAutoplayThreshold()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user