mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Fix another test
This commit is contained in:
@ -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
|
||||
|
@ -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.";
|
||||
|
Reference in New Issue
Block a user