mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix progress window not disappearing when importing csv
This commit is contained in:
parent
d60155bc92
commit
f3a8bb28d5
1 changed files with 1 additions and 1 deletions
|
@ -361,6 +361,7 @@ def importFile(mw, file):
|
||||||
mw.progress.start(immediate=True)
|
mw.progress.start(immediate=True)
|
||||||
try:
|
try:
|
||||||
importer.open()
|
importer.open()
|
||||||
|
mw.progress.finish()
|
||||||
diag = ImportDialog(mw, importer)
|
diag = ImportDialog(mw, importer)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
mw.progress.finish()
|
mw.progress.finish()
|
||||||
|
@ -377,7 +378,6 @@ def importFile(mw, file):
|
||||||
showText(msg)
|
showText(msg)
|
||||||
return
|
return
|
||||||
finally:
|
finally:
|
||||||
mw.progress.finish()
|
|
||||||
importer.close()
|
importer.close()
|
||||||
else:
|
else:
|
||||||
# if it's an apkg/zip, first test it's a valid file
|
# if it's an apkg/zip, first test it's a valid file
|
||||||
|
|
Loading…
Reference in a new issue