mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
temporarily disable importing multiple files
Will follow up on this on https://github.com/ankitects/anki/pull/1562
This commit is contained in:
parent
008c62a844
commit
e49496abae
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ class MainWebView(AnkiWebView):
|
||||||
deck_paths = filter(lambda p: not p.endswith(".colpkg"), paths)
|
deck_paths = filter(lambda p: not p.endswith(".colpkg"), paths)
|
||||||
for path in deck_paths:
|
for path in deck_paths:
|
||||||
aqt.importing.importFile(self.mw, path)
|
aqt.importing.importFile(self.mw, path)
|
||||||
|
# importing continues after the above call returns, so it is not
|
||||||
|
# currently safe for us to import more than one file at once
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
class AnkiQt(QMainWindow):
|
class AnkiQt(QMainWindow):
|
||||||
|
|
Loading…
Reference in a new issue