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:
parent
d8f6bbc90e
commit
6c81d57178
@ -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;
|
||||
});
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user