fix import screen appearing before progress dialog closes
This commit is contained in:
parent
f2bb7eb5ae
commit
429cb2ce7f
@ -336,7 +336,10 @@ def importFile(mw, file):
|
||||
return
|
||||
mw.progress.start(immediate=True)
|
||||
try:
|
||||
importer.run()
|
||||
try:
|
||||
importer.run()
|
||||
finally:
|
||||
mw.progress.finish()
|
||||
except zipfile.BadZipfile:
|
||||
showWarning(invalidZipMsg())
|
||||
except Exception as e:
|
||||
@ -360,8 +363,6 @@ Unable to import from a read-only file."""))
|
||||
tooltip(log)
|
||||
else:
|
||||
showText(log)
|
||||
finally:
|
||||
mw.progress.finish()
|
||||
mw.reset()
|
||||
|
||||
def invalidZipMsg():
|
||||
|
Loading…
Reference in New Issue
Block a user