mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
disable main window while collection unloaded
fixes error when pressing y then d in rapid succession
This commit is contained in:
parent
905692b2a7
commit
880243c361
1 changed files with 2 additions and 0 deletions
|
|
@ -331,6 +331,7 @@ Debug info:
|
||||||
self.showProfileManager()
|
self.showProfileManager()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
self.setEnabled(True)
|
||||||
self.progress.setupDB(self.col.db)
|
self.progress.setupDB(self.col.db)
|
||||||
self.maybeEnableUndo()
|
self.maybeEnableUndo()
|
||||||
self.moveToState("deckBrowser")
|
self.moveToState("deckBrowser")
|
||||||
|
|
@ -338,6 +339,7 @@ Debug info:
|
||||||
|
|
||||||
def unloadCollection(self, onsuccess):
|
def unloadCollection(self, onsuccess):
|
||||||
def callback():
|
def callback():
|
||||||
|
self.setEnabled(False)
|
||||||
self._unloadCollection()
|
self._unloadCollection()
|
||||||
onsuccess()
|
onsuccess()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue