From f23a361876c4db911c0bb2b11156bc67612ddc34 Mon Sep 17 00:00:00 2001 From: BlueGreenMagick <50060875+BlueGreenMagick@users.noreply.github.com> Date: Sun, 26 Apr 2020 15:47:19 +0900 Subject: [PATCH] use variable names --- qt/aqt/browser.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 83b02d733..62a3bb380 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -1160,15 +1160,15 @@ QTableView {{ gridline-color: {grid} }} continue item = SidebarItem( - g[0], + baseName, ":/icons/deck.svg", - lambda g=g: self.setFilter("deck", head + g[0]), - lambda expanded, g=g: self.mw.col.decks.collapseBrowser(g[1]), - not self.mw.col.decks.get(g[1]).get("browserCollapsed", False), + lambda baseName=baseName: self.setFilter("deck", head + baseName), + lambda expanded, did=did: self.mw.col.decks.collapseBrowser(did), + not self.mw.col.decks.get(did).get("browserCollapsed", False), ) root.addChild(item) - newhead = head + g[0] + "::" - fillGroups(item, g[5], newhead) + newhead = head + baseName + "::" + fillGroups(item, children, newhead) fillGroups(root, grps)