mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
add options to gen/delete all latex
This commit is contained in:
parent
bbb4b87d71
commit
18d628ff0c
1 changed files with 8 additions and 0 deletions
|
@ -1369,6 +1369,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
self.connect(m.actionActiveTags, s, self.onActiveTags)
|
||||
self.connect(m.actionReleaseNotes, s, self.onReleaseNotes)
|
||||
self.connect(m.actionGetMoreDecks, s, self.onGetMoreDecks)
|
||||
self.connect(m.actionCacheLatex, s, self.onCacheLatex)
|
||||
self.connect(m.actionUncacheLatex, s, self.onUncacheLatex)
|
||||
|
||||
def enableDeckMenuItems(self, enabled=True):
|
||||
"setEnabled deck-related items."
|
||||
|
@ -1692,3 +1694,9 @@ tag or delete references to missing files?"""))
|
|||
|
||||
def addHook(self, *args):
|
||||
addHook(*args)
|
||||
|
||||
def onCacheLatex(self):
|
||||
anki.latex.cacheAllLatexImages(self.deck)
|
||||
|
||||
def onUncacheLatex(self):
|
||||
anki.latex.deleteAllLatexImages(self.deck)
|
||||
|
|
Loading…
Reference in a new issue