Move checking logic out of ScoreTable

This commit is contained in:
TheWildTree
2020-02-29 15:29:00 +01:00
parent d71b516902
commit f661806513
2 changed files with 6 additions and 6 deletions

View File

@ -59,11 +59,12 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
}
var scoreInfos = value.Scores.Select(s => s.CreateScoreInfo(rulesets)).ToList();
var topScore = scoreInfos.First();
scoreTable.Scores = scoreInfos;
scoreTable.IsBeatmapRanked = topScore.Beatmap.Status == BeatmapSetOnlineStatus.Ranked;
scoreTable.Show();
var topScore = scoreInfos.First();
var userScore = value.UserScore;
var userScoreInfo = userScore?.Score.CreateScoreInfo(rulesets);