From a9bf702317bccb37e98e79eff7568af76e0f4ad2 Mon Sep 17 00:00:00 2001 From: Abdo Date: Fri, 24 May 2024 11:23:29 +0300 Subject: [PATCH] Call profile_did_open hook at the end of loadProfile (#3202) --- qt/aqt/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index e3113b3b9..e7159977d 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -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: