aboutsummaryrefslogtreecommitdiffstats
path: root/app/dirtree.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/dirtree.go')
-rw-r--r--app/dirtree.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/dirtree.go b/app/dirtree.go
index 1e0e76fb..1cfd1513 100644
--- a/app/dirtree.go
+++ b/app/dirtree.go
@@ -76,13 +76,15 @@ func (dt *DirectoryTree) Update(msg types.WorkerMessage) {
case *types.Done:
switch resp := msg.InResponseTo().(type) {
- case *types.RemoveDirectory, *types.ListDirectories, *types.CreateDirectory:
+ case *types.RemoveDirectory, *types.ListDirectories:
dt.DirectoryList.Update(msg)
dt.buildTree()
dt.Invalidate()
- case *types.OpenDirectory:
- dt.reindex(resp.Directory)
+ case *types.CreateDirectory:
dt.DirectoryList.Update(msg)
+ dt.buildTree()
+ dt.reindex(resp.Directory)
+ dt.Invalidate()
default:
dt.DirectoryList.Update(msg)
}