mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
refocus editor when returning from media attach
This commit is contained in:
parent
a885e30205
commit
5e18d8856b
1 changed files with 1 additions and 0 deletions
|
@ -776,6 +776,7 @@ please click the help button."""), help="cloze")
|
|||
def accept(file):
|
||||
self.addMedia(file, canDelete=True)
|
||||
file = getFile(self.widget, _("Add Media"), accept, key, key="media")
|
||||
self.parentWindow.activateWindow()
|
||||
|
||||
def addMedia(self, path, canDelete=False):
|
||||
html = self._addMedia(path, canDelete)
|
||||
|
|
Loading…
Reference in a new issue