diff --git a/timetagger/app/dialogs.py b/timetagger/app/dialogs.py index eca46521..4b349f24 100644 --- a/timetagger/app/dialogs.py +++ b/timetagger/app/dialogs.py @@ -3922,6 +3922,34 @@ def _on_stopwatch_check(self): window.simplesettings.set("show_stopwatch", show_stopwatch) +class GuideDialog(BaseDialog): + """Dialog to have quick access to the guide.""" + + def __init__(self, canvas): + super().__init__(canvas) + self._initialized = 0 + + def open(self, callback=None): + # Only init once, so that the guide stays in the state as the + # user tries something and then opens it again. Up to 24 hours. + if dt.now() < self._initialized + 86400: + return super().open(callback) + self._initialized = dt.now() + + self.maindiv.innerHTML = """ +

\uf05a  Guide + +

+