mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-19 06:00:41 +01:00
Move DisplayPreferencesManager.cs to Users namespace
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user