From 4c7c526b8dcbb88d79ddf99108a8514419fbd096 Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Fri, 16 Oct 2015 20:36:37 -0600 Subject: [PATCH] Add missing GUI saving for command delay Also adjust the default command delay step to 100ms. --- syncplay/ui/GuiConfiguration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index ad8f80c..26e7282 100644 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -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() \ No newline at end of file + self.populateEmptyServerList()