mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix ctrl+enter not working when importing screen first opened
Thanks to blueputty01 for investigating! Closes #2326
This commit is contained in:
parent
cf45cbf429
commit
0be9ee8dcc
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ class ImportCsvDialog(QDialog):
|
|||
layout.addWidget(self.web)
|
||||
self.setLayout(layout)
|
||||
|
||||
self.web.eval(f"anki.setupImportCsvPage('{path}');")
|
||||
self.web.evalWithCallback(
|
||||
f"anki.setupImportCsvPage('{path}');", lambda _: self.web.setFocus()
|
||||
)
|
||||
self.setWindowTitle(tr.decks_import_file())
|
||||
|
||||
def reject(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue