@@ -309,9 +309,9 @@ def set_ui_values(self):
309309 self .m_checkBoxResetNavigationMode .SetValue (user_preferences ["Navigation" ]["ResetNavMode" ])
310310 self .m_choiceSpeechAmountNavigation .SetSelection (Navigation_NavVerbosity .index (user_preferences ["Navigation" ]["NavVerbosity" ]))
311311 if user_preferences ["Navigation" ]["Overview" ]:
312- self .m_choiceNavigationSpeech .SetSelection (0 )
313- else :
314312 self .m_choiceNavigationSpeech .SetSelection (1 )
313+ else :
314+ self .m_choiceNavigationSpeech .SetSelection (0 )
315315 self .m_checkBoxResetNavigationSpeech .SetValue (user_preferences ["Navigation" ]["ResetOverview" ])
316316 self .m_checkBoxAutomaticZoom .SetValue (user_preferences ["Navigation" ]["AutoZoomOut" ])
317317 self .m_choiceBrailleHighlights .SetSelection (Braille_BrailleNavHighlight .index (user_preferences ["Braille" ]["BrailleNavHighlight" ]))
@@ -338,10 +338,7 @@ def get_ui_values(self):
338338 user_preferences ["Navigation" ]["NavMode" ] = Navigation_NavMode [self .m_choiceNavigationMode .GetSelection ()]
339339 user_preferences ["Navigation" ]["ResetNavMode" ] = self .m_checkBoxResetNavigationMode .GetValue ()
340340 user_preferences ["Navigation" ]["NavVerbosity" ] = Navigation_NavVerbosity [self .m_choiceSpeechAmountNavigation .GetSelection ()]
341- if self .m_choiceNavigationSpeech .GetSelection () == 0 :
342- user_preferences ["Navigation" ]["Overview" ] = True
343- else :
344- user_preferences ["Navigation" ]["Overview" ] = False
341+ user_preferences ["Navigation" ]["Overview" ] = self .m_choiceNavigationSpeech .GetSelection () != 0
345342 user_preferences ["Navigation" ]["ResetOverview" ] = self .m_checkBoxResetNavigationSpeech .GetValue ()
346343 user_preferences ["Navigation" ]["AutoZoomOut" ] = self .m_checkBoxAutomaticZoom .GetValue ()
347344 user_preferences ["Braille" ]["BrailleNavHighlight" ] = Braille_BrailleNavHighlight [self .m_choiceBrailleHighlights .GetSelection ()]
0 commit comments