Merge pull request #581 from BlueGreenMagick/use-var-name

use variable names
This commit is contained in:
Damien Elmes 2020-04-27 19:10:04 +10:00 committed by GitHub
commit 5746302817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1160,15 +1160,15 @@ QTableView {{ gridline-color: {grid} }}
continue continue
item = SidebarItem( item = SidebarItem(
g[0], baseName,
":/icons/deck.svg", ":/icons/deck.svg",
lambda g=g: self.setFilter("deck", head + g[0]), lambda baseName=baseName: self.setFilter("deck", head + baseName),
lambda expanded, g=g: self.mw.col.decks.collapseBrowser(g[1]), lambda expanded, did=did: self.mw.col.decks.collapseBrowser(did),
not self.mw.col.decks.get(g[1]).get("browserCollapsed", False), not self.mw.col.decks.get(did).get("browserCollapsed", False),
) )
root.addChild(item) root.addChild(item)
newhead = head + g[0] + "::" newhead = head + baseName + "::"
fillGroups(item, g[5], newhead) fillGroups(item, children, newhead)
fillGroups(root, grps) fillGroups(root, grps)