Move DisplayPreferencesManager.cs to Users namespace
This commit is contained in:
parent
9f323e5579
commit
52ebf6ae8f
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using Jellyfin.Data.Entities;
|
||||
using MediaBrowser.Controller;
|
||||
|
||||
namespace Jellyfin.Server.Implementations
|
||||
namespace Jellyfin.Server.Implementations.Users
|
||||
{
|
||||
/// <summary>
|
||||
/// Manages the storage and retrieval of display preferences through Entity Framework.
|
|
@ -148,7 +148,7 @@ namespace MediaBrowser.Api
|
|||
|
||||
foreach (var key in request.CustomPrefs.Keys.Where(key => key.StartsWith("homesection")))
|
||||
{
|
||||
var order = int.Parse(key.Substring("homesection".Length));
|
||||
var order = int.Parse(key.AsSpan().Slice("homesection".Length));
|
||||
if (!Enum.TryParse<HomeSectionType>(request.CustomPrefs[key], true, out var type))
|
||||
{
|
||||
type = order < 7 ? defaults[order] : HomeSectionType.None;
|
||||
|
|
Loading…
Reference in New Issue
Block a user