diff --git a/qt/aqt/deckbrowser.py b/qt/aqt/deckbrowser.py index e1b3cd748..9e45ffec1 100644 --- a/qt/aqt/deckbrowser.py +++ b/qt/aqt/deckbrowser.py @@ -20,7 +20,6 @@ from aqt.toolbar import BottomBar from aqt.utils import ( askUser, getOnlyText, - openHelp, openLink, shortcut, showWarning, @@ -41,12 +40,10 @@ class DeckBrowserContent: Attributes: tree {str} -- HTML of the deck tree section stats {str} -- HTML of the stats section - countwarn {str} -- HTML of the deck count warning section """ tree: str stats: str - countwarn: str class DeckBrowser: @@ -84,11 +81,6 @@ class DeckBrowser: self._onShared() elif cmd == "import": self.mw.onImport() - elif cmd == "lots": - openHelp("using-decks-appropriately") - elif cmd == "hidelots": - self.mw.pm.profile["hideDeckLotsMsg"] = True - self.refresh() elif cmd == "create": deck = getOnlyText(_("Name for deck:")) if deck: @@ -116,7 +108,6 @@ class DeckBrowser:
%(stats)s -%(countwarn)s """ @@ -130,9 +121,7 @@ class DeckBrowser: def __renderPage(self, offset): content = DeckBrowserContent( - tree=self._renderDeckTree(self._dueTree), - stats=self._renderStats(), - countwarn=self._countWarn(), + tree=self._renderDeckTree(self._dueTree), stats=self._renderStats(), ) gui_hooks.deck_browser_will_render_content(self, content) self.web.stdHtml( @@ -161,22 +150,6 @@ where id > ?""", buf = self.mw.col.backend.studied_today(cards, float(thetime)) return buf - def _countWarn(self): - if self.mw.col.decks.count() < 25 or self.mw.pm.profile.get("hideDeckLotsMsg"): - return "" - return "
" + ( - _("You have a lot of decks. Please see %(a)s. %(b)s") - % dict( - a=( - "%s" % _("this page") - ), - b=( - "
(" - "%s)" % (_("hide")) + "
" - ), - ) - ) - def _renderDeckTree(self, nodes, depth=0): if not nodes: return ""