mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
set media path if existing
This commit is contained in:
parent
73c043ed7e
commit
883d5824f4
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ class FactEditor(object):
|
|||
self.lastFocusedEdit = None
|
||||
self.changeTimer = None
|
||||
addHook("deckClosed", self.deckClosedHook)
|
||||
if self.deck.mediaDir(create=False):
|
||||
self.initMedia()
|
||||
|
||||
def setFact(self, fact, noFocus=False, check=False):
|
||||
"Make FACT the current fact."
|
||||
|
|
Loading…
Reference in a new issue