From c04bbd1e2eb55c73418ee74223d80a6df5b59e7d Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 17 May 2023 13:41:58 +0100 Subject: [PATCH] Ensure the loader kicks off when starting up with . as the directory --- src/textual/widgets/_directory_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_directory_tree.py b/src/textual/widgets/_directory_tree.py index c87ab42a3..6423454db 100644 --- a/src/textual/widgets/_directory_tree.py +++ b/src/textual/widgets/_directory_tree.py @@ -92,7 +92,7 @@ class DirectoryTree(Tree[DirEntry]): """ return self.tree - path: var[str | Path] = var["str | Path"](Path("."), init=False) + path: var[str | Path] = var["str | Path"](Path("."), init=False, always_update=True) """The path that is the root of the directory tree. Note: