mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Call profile_did_open hook at the end of loadProfile (#3202)
This commit is contained in:
parent
c8f8a9cd2f
commit
a9bf702317
1 changed files with 1 additions and 2 deletions
|
@ -494,7 +494,6 @@ class AnkiQt(QMainWindow):
|
|||
else:
|
||||
self.handleImport(self.pendingImport)
|
||||
self.pendingImport = None
|
||||
gui_hooks.profile_did_open()
|
||||
|
||||
def _onsuccess(synced: bool) -> None:
|
||||
if synced:
|
||||
|
@ -527,8 +526,8 @@ class AnkiQt(QMainWindow):
|
|||
)
|
||||
|
||||
refresh_reviewer_on_day_rollover_change()
|
||||
|
||||
self.maybe_auto_sync_on_open_close(_onsuccess)
|
||||
gui_hooks.profile_did_open()
|
||||
|
||||
def unloadProfile(self, onsuccess: Callable) -> None:
|
||||
def callback() -> None:
|
||||
|
|
Loading…
Reference in a new issue