aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-09-05 15:25:40 +0200
committerGitHub <noreply@github.com>2021-09-05 15:25:40 +0200
commit66659b0842765c55228f4588af71134955ebafb8 (patch)
tree2250491a1e7746ab893e3397c6d1fc8c4be92b2d
parentff83fabac35a7bf8756a8d822b8f031d700dbb64 (diff)
parent51fb6e1d2d4ed30ead48400e71706a609547937e (diff)
Merge pull request #6089 from BaronGreenback/IsRoot_fix
Set UserRootFolder.IsRoot to true
-rw-r--r--MediaBrowser.Controller/Entities/UserRootFolder.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/UserRootFolder.cs b/MediaBrowser.Controller/Entities/UserRootFolder.cs
index f3bf4749d..c07fb40b3 100644
--- a/MediaBrowser.Controller/Entities/UserRootFolder.cs
+++ b/MediaBrowser.Controller/Entities/UserRootFolder.cs
@@ -44,6 +44,14 @@ namespace MediaBrowser.Controller.Entities
}
}
+ /// <summary>
+ /// Initializes a new instance of the <see cref="UserRootFolder"/> class.
+ /// </summary>
+ public UserRootFolder()
+ {
+ IsRoot = true;
+ }
+
protected override List<BaseItem> LoadChildren()
{
lock (_childIdsLock)