From e49496abaea968882f0f6ccab6bdd1317fd63b93 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 2 Jan 2022 09:49:51 +1000 Subject: [PATCH] temporarily disable importing multiple files Will follow up on this on https://github.com/ankitects/anki/pull/1562 --- qt/aqt/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 2a6a16241..9abfebb72 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -116,6 +116,9 @@ class MainWebView(AnkiWebView): deck_paths = filter(lambda p: not p.endswith(".colpkg"), paths) for path in deck_paths: 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):