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 @@ namespace osu.Game.Graphics.Backgrounds
return new SeasonalBackground(url); return new SeasonalBackground(url);
} }
public bool IsInSeason() => DateTimeOffset.Now < endDate.Value; public bool IsInSeason => DateTimeOffset.Now < endDate.Value;
} }
[LongRunningLoad] [LongRunningLoad]

View File

@ -109,7 +109,7 @@ namespace osu.Game.Screens.Backgrounds
switch (seasonalBackgroundMode.Value) switch (seasonalBackgroundMode.Value)
{ {
case SeasonalBackgroundMode.Sometimes: case SeasonalBackgroundMode.Sometimes:
if (seasonalBackgroundLoader.IsInSeason()) if (seasonalBackgroundLoader.IsInSeason)
goto case SeasonalBackgroundMode.Always; goto case SeasonalBackgroundMode.Always;
break; break;