Merge pull request #2713 from davep/tree-node-label-change-should-refresh-the-tree

This commit is contained in:
Dave Pearson
2023-06-01 17:19:28 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Fixed
- Fixed setting `TreeNode.label` on an existing `Tree` node not immediately https://github.com/Textualize/textual/pull/2713
## [0.27.0] - 2023-06-01
### Fixed

View File

@@ -307,6 +307,7 @@ class TreeNode(Generic[TreeDataType]):
self._updates += 1
text_label = self._tree.process_label(label)
self._label = text_label
self._tree.call_later(self._tree._refresh_node, self)
def add(
self,