mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12: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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue