aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/CollectionFolder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-19 20:53:18 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-19 20:53:18 -0400
commitb7a8b92c0011c5411a691d522a414480c4c5e34c (patch)
tree3a84dbd4d5cd1c78561a92c2a9283ac9cf687b52 /MediaBrowser.Controller/Entities/CollectionFolder.cs
parent04468452ea873e83811522180a0423ac72d6f77d (diff)
reduce system info refreshing from dashboard
Diffstat (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/CollectionFolder.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs
index bc50ce618..f032d9318 100644
--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs
+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs
@@ -65,6 +65,8 @@ namespace MediaBrowser.Controller.Entities
IndexCache.Clear();
}
+ ResetDynamicChildren();
+
return NullTaskResult;
}
@@ -99,7 +101,8 @@ namespace MediaBrowser.Controller.Entities
return LibraryManager.RootFolder.Children
.OfType<Folder>()
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
- .SelectMany(c => c.LinkedChildren).ToList();
+ .SelectMany(c => c.LinkedChildren)
+ .ToList();
}
private IEnumerable<BaseItem> _actualChildren;
@@ -131,7 +134,8 @@ namespace MediaBrowser.Controller.Entities
LibraryManager.RootFolder.Children
.OfType<Folder>()
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
- .SelectMany(c => c.Children);
+ .SelectMany(c => c.Children)
+ .ToList();
}
public void ResetDynamicChildren()