Rename autoplayInitialThreshold to autoplayMinUsers

This commit is contained in:
Et0h 2015-02-28 10:23:34 +00:00
parent 88bada4f15
commit 4739a3b7ed
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class ConfigurationGetter(object):
"readyAtStart": False,
"alwaysUnpause": False,
"autoplayInitialState" : None,
"autoplayInitialThreshold" : -1,
"autoplayMinUsers" : -1,
"clearGUIData": False,
"language" : "",
"checkForUpdatesAutomatically" : None,
@ -109,12 +109,12 @@ class ConfigurationGetter(object):
"slowdownThreshold",
"rewindThreshold",
"fastforwardThreshold",
"autoplayInitialThreshold",
"autoplayMinUsers",
]
self._iniStructure = {
"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"],
"general": ["language", "checkForUpdatesAutomatically", "lastCheckedForUpdates"]
}

View File

@ -92,9 +92,9 @@ class MainWindow(QtGui.QMainWindow):
self.autoplayPushButton.blockSignals(True)
self.autoplayPushButton.setChecked(autoplayInitialState)
self.autoplayPushButton.blockSignals(False)
if self.config['autoplayInitialThreshold'] > 1:
if self.config['autoplayMinUsers'] > 1:
self.autoplayThresholdSpinbox.blockSignals(True)
self.autoplayThresholdSpinbox.setValue(self.config['autoplayInitialThreshold'])
self.autoplayThresholdSpinbox.setValue(self.config['autoplayMinUsers'])
self.autoplayThresholdSpinbox.blockSignals(False)
self.changeAutoplayState()
self.changeAutoplayThreshold()