1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Remove hacks for updating model info

- Re-retrieve score from database when presenting scores
This commit is contained in:
naoey 2019-06-29 16:08:48 +05:30
parent d8f6bbc90e
commit 6c81d57178
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
2 changed files with 2 additions and 7 deletions

View File

@ -115,11 +115,6 @@ namespace osu.Game.Online
if (!s.Equals(Model.Value))
return;
// when model states are being updated from manager, update the model being held by us also so that it will
// be up do date when being consumed for reading files etc.
// the value -> null -> value change is to force the bindable to update the value instance
Model.Value = null;
Model.Value = s;
State.Value = state;
});

View File

@ -261,8 +261,8 @@ namespace osu.Game
/// </summary>
public void PresentScore(ScoreInfo score)
{
var databasedScore = ScoreManager.GetScore(score);
var databasedScoreInfo = databasedScore.ScoreInfo;
var databasedScoreInfo = ScoreManager.Query(s => s.OnlineScoreID == score.OnlineScoreID);
var databasedScore = ScoreManager.GetScore(databasedScoreInfo);
if (databasedScore.Replay == null)
{