mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a reminder to add the node to the FileSelected message
This commit is contained in:
@@ -66,6 +66,9 @@ class DirectoryTree(Tree[DirEntry]):
|
||||
|
||||
def __init__(self, path: Path) -> None:
|
||||
super().__init__()
|
||||
# TODO: Add the node here too to mimic what Tree provides.
|
||||
# Without it there's no sensible way of knowing which tree sent
|
||||
# the message.
|
||||
self.path: Path = path
|
||||
"""The path of the file that was selected."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user