IsInSeason() -> IsInSeason

This commit is contained in:
Max Hübner 2020-10-30 15:56:19 +01:00
parent 4e3fb615d2
commit d19dd4eef6
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public SeasonalBackground LoadBackground()
return new SeasonalBackground(url);
}
public bool IsInSeason() => DateTimeOffset.Now < endDate.Value;
public bool IsInSeason => DateTimeOffset.Now < endDate.Value;
}
[LongRunningLoad]

View File

@ -109,7 +109,7 @@ private Background createBackground()
switch (seasonalBackgroundMode.Value)
{
case SeasonalBackgroundMode.Sometimes:
if (seasonalBackgroundLoader.IsInSeason())
if (seasonalBackgroundLoader.IsInSeason)
goto case SeasonalBackgroundMode.Always;
break;