Skip to content

Commit

Permalink
refresh hover node
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 5, 2021
1 parent 6618f0d commit 3aacac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/widgets/_directory_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async def watch_hover_node(self, hover_node: NodeID) -> None:
node.tree.guide_style = (
"bold not dim red" if node.id == hover_node else "black"
)
self.refresh(layout=True)

def render_node(self, node: TreeNode[DirEntry]) -> RenderableType:
meta = {"@click": f"click_label({node.id})", "tree_node": node.id}
Expand Down

0 comments on commit 3aacac6

Please sign in to comment.