mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix error when double-clicking open profile button
https://anki.tenderapp.com/discussions/ankidesktop/38670-bug-when-auto-sync-is-enabled-and-open-profile-button-is-double-clicked
This commit is contained in:
parent
072b64c819
commit
af26922493
1 changed files with 3 additions and 0 deletions
|
@ -239,6 +239,9 @@ class AnkiQt(QMainWindow):
|
|||
return self.pm.load(name)
|
||||
|
||||
def onOpenProfile(self) -> None:
|
||||
self.profileDiag.hide()
|
||||
# code flow is confusing here - if load fails, profile dialog
|
||||
# will be shown again
|
||||
self.loadProfile(self.profileDiag.closeWithoutQuitting)
|
||||
|
||||
def profileNameOk(self, str):
|
||||
|
|
Loading…
Reference in a new issue