mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add rebuild button
This commit is contained in:
parent
a4e6db9498
commit
896ecfa0f5
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,9 @@ class Overview(object):
|
||||||
print "anki menu"
|
print "anki menu"
|
||||||
elif url == "opts":
|
elif url == "opts":
|
||||||
self.mw.onDeckConf()
|
self.mw.onDeckConf()
|
||||||
|
elif url == "refresh":
|
||||||
|
self.mw.col.sched.rebuildDyn()
|
||||||
|
self.mw.reset()
|
||||||
elif url == "decks":
|
elif url == "decks":
|
||||||
self.mw.moveToState("deckBrowser")
|
self.mw.moveToState("deckBrowser")
|
||||||
elif url == "review":
|
elif url == "review":
|
||||||
|
@ -140,6 +143,7 @@ text-align: left;
|
||||||
def _renderBottom(self):
|
def _renderBottom(self):
|
||||||
links = [
|
links = [
|
||||||
["opts", _("Options")],
|
["opts", _("Options")],
|
||||||
|
["refresh", _("Rebuild")],
|
||||||
]
|
]
|
||||||
buf = ""
|
buf = ""
|
||||||
for b in links:
|
for b in links:
|
||||||
|
|
Loading…
Reference in a new issue