Set the defaults for the landing page

This commit is contained in:
tidusjar 2016-06-21 13:02:53 +01:00
parent f30bc103ed
commit 5a1b606f01

View file

@ -818,7 +818,14 @@ namespace PlexRequests.UI.Modules
private async Task<Negotiator> LandingPage()
{
var settings = await LandingSettings.GetSettingsAsync();
if (settings.NoticeEnd == DateTime.MinValue)
{
settings.NoticeEnd = DateTime.Now;
}
if (settings.NoticeStart == DateTime.MinValue)
{
settings.NoticeStart = DateTime.Now;
}
return View["LandingPage", settings];
}