Skip to content

Commit 696ae2d

Browse files
Pre-commit auto-fix
1 parent 004b3f1 commit 696ae2d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

source/globalCommands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def script_increaseBrailleAutoScrollRate(self, gesture: inputCore.InputGesture):
855855
)
856856
if config.conf["braille"]["autoScrollRate"] + 0.5 <= maxRate:
857857
config.conf["braille"]["autoScrollRate"] += 0.5
858-
rate = f"{config.conf["braille"]["autoScrollRate"]:.1f}"
858+
rate = f"{config.conf['braille']['autoScrollRate']:.1f}"
859859
ui.message(rate)
860860

861861
@script(
@@ -871,7 +871,7 @@ def script_decreaseBrailleAutoScrollRate(self, gesture: inputCore.InputGesture):
871871
)
872872
if config.conf["braille"]["autoScrollRate"] - 0.5 >= minRate:
873873
config.conf["braille"]["autoScrollRate"] -= 0.5
874-
rate = f"{config.conf["braille"]["autoScrollRate"]:.1f}"
874+
rate = f"{config.conf['braille']['autoScrollRate']:.1f}"
875875
ui.message(rate)
876876

877877
@script(

source/gui/settingsDialogs.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5443,12 +5443,14 @@ def makeSettings(self, settingsSizer):
54435443
)
54445444
# Translators: The label for a setting in braille settings to change the rate for autoscroll.
54455445
autoScrollRateText = _("Auto&matic scroll rate (cells/sec)")
5446-
self.autoScrollRateSlider: nvdaControls.EnhancedInputSlider = followCursorGroupHelper.addLabeledControl(
5447-
autoScrollRateText,
5448-
nvdaControls.EnhancedInputSlider,
5449-
minValue=5,
5450-
maxValue=100,
5446+
self.autoScrollRateSlider: nvdaControls.EnhancedInputSlider = (
5447+
followCursorGroupHelper.addLabeledControl(
5448+
autoScrollRateText,
5449+
nvdaControls.EnhancedInputSlider,
5450+
minValue=5,
5451+
maxValue=100,
54515452
)
5453+
)
54525454
self.autoScrollRateSlider.SetValue(int(config.conf["braille"]["autoScrollRate"] * 5))
54535455
self.autoScrollRateSlider.SetLineSize(2)
54545456
self.bindHelpEvent("BrailleAutoScrollRate", self.autoScrollRateSlider)

0 commit comments

Comments
 (0)