diff --git a/ftl/core/actions.ftl b/ftl/core/actions.ftl index e8e3f4a7d..56086f484 100644 --- a/ftl/core/actions.ftl +++ b/ftl/core/actions.ftl @@ -71,3 +71,5 @@ actions-set-flag = Set Flag actions-nothing-to-undo = Nothing to undo actions-nothing-to-redo = Nothing to redo actions-auto-advance = Auto Advance +actions-auto-advance-activated = Auto Advance enabled +actions-auto-advance-deactivated = Auto Advance disabled diff --git a/qt/aqt/main.py b/qt/aqt/main.py index c45b9219d..06b8f1faa 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -830,6 +830,8 @@ class AnkiQt(QMainWindow): if self.state == "review": self.reviewer.refresh_if_needed() self.reviewer.auto_advance_enabled = self._auto_advance_was_enabled + if self.reviewer.auto_advance_enabled: + tooltip(tr.actions_auto_advance_activated()) self.reviewer.auto_advance_if_enabled() elif self.state == "overview": self.overview.refresh_if_needed() @@ -838,6 +840,7 @@ class AnkiQt(QMainWindow): elif (not new_focus or new_focus.window() != self) and self.state == "review": self._auto_advance_was_enabled = self.reviewer.auto_advance_enabled self.reviewer.auto_advance_enabled = False + tooltip(tr.actions_auto_advance_deactivated()) def fade_out_webview(self) -> None: self.web.eval("document.body.style.opacity = 0.3") diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index b9f592afe..07a7e7256 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -1147,6 +1147,10 @@ timerStopped = false; def toggle_auto_advance(self) -> None: self.auto_advance_enabled = not self.auto_advance_enabled + if self.auto_advance_enabled: + tooltip(tr.actions_auto_advance_activated()) + else: + tooltip(tr.actions_auto_advance_deactivated()) self.auto_advance_if_enabled() def auto_advance_if_enabled(self) -> None: