only show 'rebuild' on cram decks

This commit is contained in:
Damien Elmes 2012-03-16 19:09:31 +09:00
parent 3a57c19199
commit 17267af0ed

View file

@ -157,8 +157,9 @@ text-align: center;
def _renderBottom(self):
links = [
["opts", _("Options")],
["refresh", _("Rebuild")],
]
if self.mw.col.decks.current()['dyn']:
links.append(["refresh", _("Rebuild")])
buf = ""
for b in links:
buf += "<button onclick='py.link(\"%s\");'>%s</button>" % tuple(b)