mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52: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)
|
||||
try:
|
||||
importer.open()
|
||||
mw.progress.finish()
|
||||
diag = ImportDialog(mw, importer)
|
||||
except UnicodeDecodeError:
|
||||
mw.progress.finish()
|
||||
|
@ -377,7 +378,6 @@ def importFile(mw, file):
|
|||
showText(msg)
|
||||
return
|
||||
finally:
|
||||
mw.progress.finish()
|
||||
importer.close()
|
||||
else:
|
||||
# if it's an apkg/zip, first test it's a valid file
|
||||
|
|
Loading…
Reference in a new issue