Add missing GUI saving for command delay

Also adjust the default command delay step to 100ms.
This commit is contained in:
Peter Marheine 2015-10-16 20:36:37 -06:00
parent 16d53345a9
commit 4c7c526b8d

View File

@ -389,6 +389,8 @@ class ConfigDialog(QtGui.QDialog):
self.config[radioName] = radioValue
elif isinstance(widget, QLineEdit):
self.config[valueName] = widget.text()
elif isinstance(widget, QDoubleSpinBox):
self.config[valueName] = widget.value()
def connectChildren(self, widget):
widgetName = str(widget.objectName())
@ -687,7 +689,7 @@ class ConfigDialog(QtGui.QDialog):
self.commandDelaySpinbox = QDoubleSpinBox()
self.commandDelaySpinbox.setObjectName("playerCommandDelay")
self.commandDelaySpinbox.setMaximum(10)
self.commandDelaySpinbox.setSingleStep(.01)
self.commandDelaySpinbox.setSingleStep(.1)
self.desyncSettingsLayout = QtGui.QGridLayout()
self.desyncSettingsLayout.setSpacing(2)
@ -1009,4 +1011,4 @@ class ConfigDialog(QtGui.QDialog):
self.processWidget(self, lambda w: self.loadTooltips(w))
self.processWidget(self, lambda w: self.loadValues(w))
self.processWidget(self, lambda w: self.connectChildren(w))
self.populateEmptyServerList()
self.populateEmptyServerList()