crobibero 4 роки тому
батько
коміт
685c966468

+ 1 - 4
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);
                 }
             }