Fix value not updating after missing beatmap is imported

This commit is contained in:
Dean Herbert 2023-09-27 18:17:25 +09:00
parent 175cf68bd6
commit a639e51ddb

View File

@ -437,7 +437,6 @@ namespace osu.Game.Screens.OnlinePlay.Match
}
else
{
UserModsSelectOverlay.Beatmap = Beatmap.Value;
UserModsSection?.Show();
UserModsSelectOverlay.IsValidMod = m => allowedMods.Any(a => a.GetType() == m.GetType());
}
@ -453,7 +452,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
// Retrieve the corresponding local beatmap, since we can't directly use the playlist's beatmap info
var localBeatmap = beatmap == null ? null : beatmapManager.QueryBeatmap(b => b.OnlineID == beatmap.OnlineID);
Beatmap.Value = beatmapManager.GetWorkingBeatmap(localBeatmap);
UserModsSelectOverlay.Beatmap = Beatmap.Value = beatmapManager.GetWorkingBeatmap(localBeatmap);
}
protected virtual void UpdateMods()