mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
only show 'rebuild' on cram decks
This commit is contained in:
parent
3a57c19199
commit
17267af0ed
1 changed files with 2 additions and 1 deletions
|
@ -157,8 +157,9 @@ text-align: center;
|
||||||
def _renderBottom(self):
|
def _renderBottom(self):
|
||||||
links = [
|
links = [
|
||||||
["opts", _("Options")],
|
["opts", _("Options")],
|
||||||
["refresh", _("Rebuild")],
|
|
||||||
]
|
]
|
||||||
|
if self.mw.col.decks.current()['dyn']:
|
||||||
|
links.append(["refresh", _("Rebuild")])
|
||||||
buf = ""
|
buf = ""
|
||||||
for b in links:
|
for b in links:
|
||||||
buf += "<button onclick='py.link(\"%s\");'>%s</button>" % tuple(b)
|
buf += "<button onclick='py.link(\"%s\");'>%s</button>" % tuple(b)
|
||||||
|
|
Loading…
Reference in a new issue