Call profile_did_open hook at the end of loadProfile (#3202)

This commit is contained in:
Abdo 2024-05-24 11:23:29 +03:00 committed by GitHub
parent c8f8a9cd2f
commit a9bf702317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -494,7 +494,6 @@ class AnkiQt(QMainWindow):
else: else:
self.handleImport(self.pendingImport) self.handleImport(self.pendingImport)
self.pendingImport = None self.pendingImport = None
gui_hooks.profile_did_open()
def _onsuccess(synced: bool) -> None: def _onsuccess(synced: bool) -> None:
if synced: if synced:
@ -527,8 +526,8 @@ class AnkiQt(QMainWindow):
) )
refresh_reviewer_on_day_rollover_change() refresh_reviewer_on_day_rollover_change()
self.maybe_auto_sync_on_open_close(_onsuccess) self.maybe_auto_sync_on_open_close(_onsuccess)
gui_hooks.profile_did_open()
def unloadProfile(self, onsuccess: Callable) -> None: def unloadProfile(self, onsuccess: Callable) -> None:
def callback() -> None: def callback() -> None: