Fix wrong tag collapse state being used

This commit is contained in:
abdo 2021-01-18 06:50:29 +03:00
parent 0ac97cf358
commit 5ac69d6dc6

View File

@ -1168,8 +1168,8 @@ QTableView {{ gridline-color: {grid} }}
def toggle_expand():
full_name = head + node.name # pylint: disable=cell-var-from-loop
return lambda _: self.mw.col.tags.set_collapsed(
full_name, not node.collapsed
return lambda expanded: self.mw.col.tags.set_collapsed(
full_name, not expanded
)
item = SidebarItem(