Make SongProgressInfo.ShowProgress init-only (and remove duplicate init)

This commit is contained in:
Bartłomiej Dach 2023-01-18 23:35:02 +01:00
parent d4f2cd244d
commit b8b7442eb8
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,6 @@ namespace osu.Game.Screens.Play.HUD
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
info.ShowProgress = false;
info.TextColour = Colour4.White; info.TextColour = Colour4.White;
info.Font = OsuFont.Torus.With(size: 18, weight: FontWeight.Bold); info.Font = OsuFont.Torus.With(size: 18, weight: FontWeight.Bold);
} }

View File

@ -53,7 +53,7 @@ namespace osu.Game.Screens.Play.HUD
set => startTime = value; set => startTime = value;
} }
public bool ShowProgress = true; public bool ShowProgress { get; init; } = true;
public double EndTime public double EndTime
{ {