mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix NotFoundError
when opening browser after switching profiles (#1725)
This commit is contained in:
parent
e2eff7deae
commit
704fb918c3
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ class AnkiQt(QMainWindow):
|
|||
|
||||
def showProfileManager(self) -> None:
|
||||
self.pm.profile = None
|
||||
self.state = "profileManager"
|
||||
self.moveToState("profileManager")
|
||||
d = self.profileDiag = self.ProfileManager()
|
||||
f = self.profileForm = aqt.forms.profiles.Ui_MainWindow()
|
||||
f.setupUi(d)
|
||||
|
@ -669,7 +669,7 @@ class AnkiQt(QMainWindow):
|
|||
self.clearStateShortcuts()
|
||||
self.state = state
|
||||
gui_hooks.state_will_change(state, oldState)
|
||||
getattr(self, f"_{state}State")(oldState, *args)
|
||||
getattr(self, f"_{state}State", lambda *_: None)(oldState, *args)
|
||||
if state != "resetRequired":
|
||||
self.bottomWeb.show()
|
||||
gui_hooks.state_did_change(state, oldState)
|
||||
|
|
Loading…
Reference in a new issue