mirror of https://github.com/ppy/osu
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 @@ private void setDownloadStateFromManager(TModel s, DownloadState state) => Sched
|
|||
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 @@ public void PresentBeatmap(BeatmapSetInfo beatmap)
|
|||
/// </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