mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
focus close button after import
This commit is contained in:
parent
b3ed9613ac
commit
5540da95ef
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ class ImportDialog(QDialog):
|
|||
_("Importing complete. %(num)d facts imported from %(file)s.\n") %
|
||||
{"num": self.importer.total, "file": os.path.basename(self.file)})
|
||||
self.dialog.groupBox.setShown(False)
|
||||
self.dialog.buttonBox.button(QDialogButtonBox.Close).setFocus()
|
||||
if self.importer.log:
|
||||
txt += _("Log of import:\n") + "\n".join(self.importer.log)
|
||||
self.dialog.status.setText(txt)
|
||||
|
|
Loading…
Reference in a new issue