Move DisplayPreferencesManager.cs to Users namespace

This commit is contained in:
Patrick Barron 2020-07-22 14:53:32 -04:00
parent 9f323e5579
commit 52ebf6ae8f
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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;