diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-08 10:22:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-08 10:22:05 +0100 |
| commit | 1823cbb0261ce8388fd39078c77de89990ed2437 (patch) | |
| tree | 494480998122f451d50d6fb55c70b2297e4cff21 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs | |
| parent | 9764b6b2df2da3d37f8ba79cb502b4554c73c45a (diff) | |
| parent | 19d77c99ae77339e919090bfea1244e1eba26b0c (diff) | |
Merge pull request #4412 from cvium/fix_displaypreferences_creation
Save new display preferences
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 874467c75..76f5717e3 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -81,6 +81,9 @@ namespace Jellyfin.Api.Controllers dto.CustomPrefs["enableNextVideoInfoOverlay"] = displayPreferences.EnableNextVideoInfoOverlay.ToString(CultureInfo.InvariantCulture); dto.CustomPrefs["tvhome"] = displayPreferences.TvHome; + // This will essentially be a noop if no changes have been made, but new prefs must be saved at least. + _displayPreferencesManager.SaveChanges(); + return dto; } |
