Merge pull request #4412 from cvium/fix_displaypreferences_creation

Save new display preferences
This commit is contained in:
Claus Vium
2020-11-08 10:22:05 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

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