From 0e50cef20703cff2e13d4319ad155a30e26ba7ab Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 3 Oct 2023 12:57:39 +1000 Subject: [PATCH] Show tooltip on sync completion Closes #2695 --- ftl/core/sync.ftl | 1 + qt/aqt/sync.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ftl/core/sync.ftl b/ftl/core/sync.ftl index 0ba0690b6..8eac89f5d 100644 --- a/ftl/core/sync.ftl +++ b/ftl/core/sync.ftl @@ -63,3 +63,4 @@ sync-checking = Checking... sync-connecting = Connecting... sync-added-updated-count = Added/modified: { $up }↑ { $down }↓ sync-log-out-button = Log Out +sync-collection-complete = Collection sync complete. diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index f44a49b1f..9a17091f8 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -32,6 +32,7 @@ from aqt.utils import ( disable_help_button, showText, showWarning, + tooltip, tr, ) @@ -113,6 +114,7 @@ def sync_collection(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None: if out.server_message: showText(out.server_message) if out.required == out.NO_CHANGES: + tooltip(parent=mw, msg=tr.sync_collection_complete()) # all done; track media progress mw.media_syncer.start_monitoring() return on_done()