mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix progress dialog preventing schema mod
https://anki.tenderapp.com/discussions/beta-testing/1868-anki-2124-beta#comment_48183062 This is an ugly hack - in the future the calling code should be updated to perform the check prior to starting the operation instead.
This commit is contained in:
parent
7f16f436c3
commit
fe327e32ca
1 changed files with 7 additions and 1 deletions
|
@ -1248,7 +1248,10 @@ and if the problem comes up again, please ask on the support site."""
|
|||
##########################################################################
|
||||
|
||||
def onSchemaMod(self, arg):
|
||||
return askUser(
|
||||
progress_shown = self.progress.busy()
|
||||
if progress_shown:
|
||||
self.progress.finish()
|
||||
ret = askUser(
|
||||
_(
|
||||
"""\
|
||||
The requested change will require a full upload of the database when \
|
||||
|
@ -1257,6 +1260,9 @@ waiting on another device that haven't been synchronized here yet, they \
|
|||
will be lost. Continue?"""
|
||||
)
|
||||
)
|
||||
if progress_shown:
|
||||
self.progress.start()
|
||||
return ret
|
||||
|
||||
# Advanced features
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue