|
|
@ -147,34 +147,8 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static bool EnableRefreshMessage(BaseItem item)
|
|
|
|
private static bool EnableRefreshMessage(BaseItem item)
|
|
|
|
{
|
|
|
|
=> item is Folder { IsRoot: false, IsTopParent: true }
|
|
|
|
if (item is not Folder folder)
|
|
|
|
and not (AggregateFolder or UserRootFolder or UserView or Channel);
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (folder.IsRoot)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (folder is AggregateFolder || folder is UserRootFolder)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (folder is UserView || folder is Channel)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!folder.IsTopParent)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Handles the ItemAdded event of the libraryManager control.
|
|
|
|
/// Handles the ItemAdded event of the libraryManager control.
|
|
|
|