Show tooltip on sync completion

Closes #2695
This commit is contained in:
Damien Elmes 2023-10-03 12:57:39 +10:00
parent a5f01329a0
commit 259ed9c34d
2 changed files with 3 additions and 0 deletions

View file

@ -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.

View file

@ -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()