diff options
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 27b628774..e970524d3 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -87,10 +87,7 @@ namespace Jellyfin.Api.Controllers { foreach (var (key, value) in customDisplayPreferences) { - if (!dto.CustomPrefs.ContainsKey(key)) - { - dto.CustomPrefs[key] = value; - } + dto.CustomPrefs.TryAdd(key, value); } } |
