mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
catch schema mod in background
If the schema confirmation dialog is shown on a background thread it will crash the app, so we convert this to an assertion error that gets caught by the error handler. Code still needs to be updated to modify the schema prior to moving to the background, but at least this way it doesn't crash.
This commit is contained in:
parent
b757d3db65
commit
6b4a40f774
1 changed files with 1 additions and 0 deletions
|
|
@ -1283,6 +1283,7 @@ and if the problem comes up again, please ask on the support site."""
|
|||
##########################################################################
|
||||
|
||||
def onSchemaMod(self, arg):
|
||||
assert self.inMainThread()
|
||||
progress_shown = self.progress.busy()
|
||||
if progress_shown:
|
||||
self.progress.finish()
|
||||
|
|
|
|||
Loading…
Reference in a new issue