Fix another test

This commit is contained in:
KingLuigi4932
2019-06-19 04:27:31 +03:00
parent 3876442143
commit 6e28294182
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,6 @@ namespace osu.Game.Tests.Visual.Online
Add(container);
AddAssert("is container hidden", () => container.Alpha == 0);
AddStep("set undownloadable beatmapset", () => container.BeatmapSet = new BeatmapSetInfo
{
OnlineInfo = new BeatmapSetOnlineInfo

View File

@ -27,6 +27,10 @@ namespace osu.Game.Overlays.BeatmapSet
beatmapSet = value;
var unavailable = availability != null;
this.FadeTo(unavailable ? 1 : 0);
if (unavailable)
updateText();
}
}
@ -79,9 +83,6 @@ namespace osu.Game.Overlays.BeatmapSet
private void updateText()
{
if (availability == null)
return;
text.Text = availability.DownloadDisabled
? "This beatmap is currently not available for download."
: "Portions of this beatmap have been removed at the request of the creator or a third-party rights holder.";