Add missing GUI saving for command delay
Also adjust the default command delay step to 100ms.
This commit is contained in:
parent
16d53345a9
commit
4c7c526b8d
@ -389,6 +389,8 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
self.config[radioName] = radioValue
|
self.config[radioName] = radioValue
|
||||||
elif isinstance(widget, QLineEdit):
|
elif isinstance(widget, QLineEdit):
|
||||||
self.config[valueName] = widget.text()
|
self.config[valueName] = widget.text()
|
||||||
|
elif isinstance(widget, QDoubleSpinBox):
|
||||||
|
self.config[valueName] = widget.value()
|
||||||
|
|
||||||
def connectChildren(self, widget):
|
def connectChildren(self, widget):
|
||||||
widgetName = str(widget.objectName())
|
widgetName = str(widget.objectName())
|
||||||
@ -687,7 +689,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
self.commandDelaySpinbox = QDoubleSpinBox()
|
self.commandDelaySpinbox = QDoubleSpinBox()
|
||||||
self.commandDelaySpinbox.setObjectName("playerCommandDelay")
|
self.commandDelaySpinbox.setObjectName("playerCommandDelay")
|
||||||
self.commandDelaySpinbox.setMaximum(10)
|
self.commandDelaySpinbox.setMaximum(10)
|
||||||
self.commandDelaySpinbox.setSingleStep(.01)
|
self.commandDelaySpinbox.setSingleStep(.1)
|
||||||
|
|
||||||
self.desyncSettingsLayout = QtGui.QGridLayout()
|
self.desyncSettingsLayout = QtGui.QGridLayout()
|
||||||
self.desyncSettingsLayout.setSpacing(2)
|
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.loadTooltips(w))
|
||||||
self.processWidget(self, lambda w: self.loadValues(w))
|
self.processWidget(self, lambda w: self.loadValues(w))
|
||||||
self.processWidget(self, lambda w: self.connectChildren(w))
|
self.processWidget(self, lambda w: self.connectChildren(w))
|
||||||
self.populateEmptyServerList()
|
self.populateEmptyServerList()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user