Set the defaults for the landing page

pull/333/head
tidusjar 9 years ago
parent f30bc103ed
commit 5a1b606f01

@ -818,7 +818,14 @@ namespace PlexRequests.UI.Modules
private async Task<Negotiator> LandingPage() private async Task<Negotiator> LandingPage()
{ {
var settings = await LandingSettings.GetSettingsAsync(); 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]; return View["LandingPage", settings];
} }

Loading…
Cancel
Save