Skip to content

Commit d7977d1

Browse files
committed
Add comments to explain why we are multiplying and dividing by 5 in slider
1 parent 8dfe987 commit d7977d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/gui/settingsDialogs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5437,6 +5437,7 @@ def makeSettings(self, settingsSizer):
54375437
followCursorGroupHelper.addLabeledControl(
54385438
autoScrollRateText,
54395439
nvdaControls.EnhancedInputSlider,
5440+
# Values are multiplied by 5, so we can set a smaller difference between consecutive values.
54405441
minValue=5,
54415442
maxValue=100,
54425443
)
@@ -5475,6 +5476,7 @@ def onSave(self):
54755476
]
54765477
config.conf["braille"]["showMessages"] = self.showMessagesList.GetSelection()
54775478
config.conf["braille"]["messageTimeout"] = self.messageTimeoutEdit.GetValue()
5479+
# Values are multiplied by 5, so we can set a smaller difference between consecutive values.
54785480
config.conf["braille"]["autoScrollRate"] = self.autoScrollRateSlider.GetValue() / 5
54795481
tetherChoice = [x.value for x in TetherTo][self.tetherList.GetSelection()]
54805482
if tetherChoice == TetherTo.AUTO.value:

0 commit comments

Comments
 (0)