@@ -4363,8 +4363,22 @@ def makeSettings(self, settingsSizer):
43634363 wx .CheckBox (self .followCursorGroupBox , label = readByParagraphText ),
43644364 )
43654365 self .bindHelpEvent ("BrailleSettingsReadByParagraph" , self .readByParagraphCheckBox )
4366+ self .readByParagraphCheckBox .Bind (wx .EVT_CHECKBOX , self .onReadByParagraphChange )
43664367 self .readByParagraphCheckBox .Value = config .conf ["braille" ]["readByParagraph" ]
43674368
4369+ self .showParagraphStartCombo : nvdaControls .FeatureFlagCombo = followCursorGroupHelper .addLabeledControl (
4370+ labelText = _ (
4371+ # Translators: This is a label for a combo-box in the Braille settings panel.
4372+ "Show para&graph start" ,
4373+ ),
4374+ wxCtrlClass = nvdaControls .FeatureFlagCombo ,
4375+ keyPath = ["braille" , "showParagraphStart" ],
4376+ conf = config .conf ,
4377+ )
4378+ self .bindHelpEvent ("BrailleShowParagraphStart" , self .showParagraphStartCombo )
4379+ if not self .readByParagraphCheckBox .GetValue ():
4380+ self .showParagraphStartCombo .Disable ()
4381+
43684382 # Translators: The label for a setting in braille settings to select how the context for the focus object should be presented on a braille display.
43694383 focusContextPresentationLabelText = _ ("Focus context presentation:" )
43704384 self .focusContextPresentationValues = [x [0 ] for x in braille .focusContextPresentations ]
@@ -4459,6 +4473,7 @@ def onSave(self):
44594473 braille .handler .setTether (tetherChoice , auto = False )
44604474 self .brailleReviewRoutingMovesSystemCaretCombo .saveCurrentValueToConf ()
44614475 config .conf ["braille" ]["readByParagraph" ] = self .readByParagraphCheckBox .Value
4476+ self .showParagraphStartCombo .saveCurrentValueToConf ()
44624477 config .conf ["braille" ]["wordWrap" ] = self .wordWrapCheckBox .Value
44634478 self .unicodeNormalizationCombo .saveCurrentValueToConf ()
44644479 config .conf ["braille" ]["focusContextPresentation" ] = self .focusContextPresentationValues [
@@ -4484,6 +4499,9 @@ def onTetherToChange(self, evt: wx.CommandEvent) -> None:
44844499 tetherChoice = [x .value for x in TetherTo ][evt .GetSelection ()]
44854500 self .brailleReviewRoutingMovesSystemCaretCombo .Enable (tetherChoice != TetherTo .FOCUS .value )
44864501
4502+ def onReadByParagraphChange (self , evt ):
4503+ self .showParagraphStartCombo .Enable (evt .IsChecked ())
4504+
44874505 def _onModeChange (self , evt : wx .CommandEvent ):
44884506 self .followCursorGroupBox .Enable (not evt .GetSelection ())
44894507
0 commit comments