From ec4c1b1a20d2bc13013790390fcf0012cf15b043 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Sun, 11 Dec 2022 06:03:11 +0100 Subject: [PATCH] Do not append description button for filtered deck (#2266) --- qt/aqt/overview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/aqt/overview.py b/qt/aqt/overview.py index 8d79c0034..9d64b0db6 100644 --- a/qt/aqt/overview.py +++ b/qt/aqt/overview.py @@ -277,7 +277,8 @@ class Overview: links = [ ["O", "opts", tr.actions_options()], ] - if self.mw.col.decks.current()["dyn"]: + is_dyn = self.mw.col.decks.current()["dyn"] + if is_dyn: links.append(["R", "refresh", tr.actions_rebuild()]) links.append(["E", "empty", tr.studying_empty()]) else: @@ -285,7 +286,8 @@ class Overview: # links.append(["F", "cram", _("Filter/Cram")]) if self.mw.col.sched.have_buried(): links.append(["U", "unbury", tr.studying_unbury()]) - links.append(["", "description", tr.scheduling_description()]) + if not is_dyn: + links.append(["", "description", tr.scheduling_description()]) link_handler = gui_hooks.overview_will_render_bottom( self._linkHandler, links,