mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #2713 from davep/tree-node-label-change-should-refresh-the-tree
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user