Skip to content

Commit a565623

Browse files
committed
Fixed a bug with move focus shortcut.
1 parent 9a452d6 commit a565623

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/widgets/toolbar.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ def OnPlayPrevious(self) -> None:
223223

224224
def change_ayah_focus(self, manual: bool = False) -> None:
225225
aya_number = self.parent.quran.ayah_data.get_ayah_number(self.navigation.current_ayah, self.navigation.current_surah)
226-
auto_move_focus = SettingsManager.current_settings["listening"]["auto_move_focus"]
227-
if auto_move_focus:
226+
if SettingsManager.current_settings["listening"]["auto_move_focus"]:
228227
self.parent.set_focus_to_ayah(aya_number)
229-
elif manual:
228+
if manual:
230229
self.parent.set_focus_to_ayah(aya_number)
231230
self.parent.quran_view.setFocus()
232231

0 commit comments

Comments
 (0)