mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
revert import deck naming
This commit is contained in:
parent
811682613b
commit
2d27cb91ea
1 changed files with 0 additions and 8 deletions
|
@ -292,13 +292,6 @@ backup, please see the 'Backups' section of the user manual."""))
|
|||
if importer.__class__.__name__ == "AnkiPackageImporter":
|
||||
if not setupApkgImport(mw, importer):
|
||||
return
|
||||
def prepareImportPrefix(name):
|
||||
mw.progress.finish()
|
||||
new = getOnlyText(_("""\
|
||||
Deck to import into (if blank, will import into current deck):"""), default=name)
|
||||
mw.progress.start()
|
||||
return new or mw.col.decks.current()['name']
|
||||
addHook("prepareImportPrefix", prepareImportPrefix)
|
||||
mw.progress.start(immediate=True)
|
||||
try:
|
||||
importer.run()
|
||||
|
@ -324,7 +317,6 @@ Unable to import from a read-only file."""))
|
|||
showText(log)
|
||||
finally:
|
||||
mw.progress.finish()
|
||||
remHook("prepareImportPrefix", prepareImportPrefix)
|
||||
mw.reset()
|
||||
|
||||
def setupApkgImport(mw, importer):
|
||||
|
|
Loading…
Reference in a new issue