diff --git a/syncplay/ui/ConfigurationGetter.py b/syncplay/ui/ConfigurationGetter.py index 47694ac..3012fe1 100755 --- a/syncplay/ui/ConfigurationGetter.py +++ b/syncplay/ui/ConfigurationGetter.py @@ -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"] } diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 13569b6..cdea875 100644 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -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()