mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Remove hacks for updating model info
- Re-retrieve score from database when presenting scores
This commit is contained in:
@ -115,11 +115,6 @@ namespace osu.Game.Online
|
|||||||
if (!s.Equals(Model.Value))
|
if (!s.Equals(Model.Value))
|
||||||
return;
|
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;
|
State.Value = state;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -261,8 +261,8 @@ namespace osu.Game
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void PresentScore(ScoreInfo score)
|
public void PresentScore(ScoreInfo score)
|
||||||
{
|
{
|
||||||
var databasedScore = ScoreManager.GetScore(score);
|
var databasedScoreInfo = ScoreManager.Query(s => s.OnlineScoreID == score.OnlineScoreID);
|
||||||
var databasedScoreInfo = databasedScore.ScoreInfo;
|
var databasedScore = ScoreManager.GetScore(databasedScoreInfo);
|
||||||
|
|
||||||
if (databasedScore.Replay == null)
|
if (databasedScore.Replay == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user