diff --git a/qt/aqt/gui_hooks.py b/qt/aqt/gui_hooks.py index 1ca99856a..265f3de98 100644 --- a/qt/aqt/gui_hooks.py +++ b/qt/aqt/gui_hooks.py @@ -2722,6 +2722,10 @@ style_did_init = _StyleDidInitFilter() class _SyncDidFinishHook: + """Executes after the sync of the collection concluded. + + Note that the media sync did not necessarily finish at this point.""" + _hooks: List[Callable[[], None]] = [] def append(self, cb: Callable[[], None]) -> None: diff --git a/qt/tools/genhooks_gui.py b/qt/tools/genhooks_gui.py index dd2ed8f53..41eb9382c 100644 --- a/qt/tools/genhooks_gui.py +++ b/qt/tools/genhooks_gui.py @@ -563,7 +563,13 @@ gui_hooks.webview_did_inject_style_into_page.append(mytest) doc="""Allows changing the list of cards to delete.""", ), Hook(name="sync_will_start", args=[]), - Hook(name="sync_did_finish", args=[]), + Hook( + name="sync_did_finish", + args=[], + doc="""Executes after the sync of the collection concluded. + + Note that the media sync did not necessarily finish at this point.""", + ), # Adding cards ################### Hook(