1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 22:33:13 +08:00

Restore play button's visibility after a check

This commit is contained in:
Maciej 2016-11-07 18:20:46 +01:00
parent 39c0d89cdf
commit 110ea32b2a
2 changed files with 3 additions and 1 deletions

View File

@ -296,8 +296,11 @@ namespace osu.Game.GameModes.Play
private void addBeatmapSets()
{
if (database.Query<BeatmapSetInfo>().Count() > 0)
{
if (playButton.IsVisible == false) playButton.Show();
foreach (var beatmapSet in database.Query<BeatmapSetInfo>())
addBeatmapSet(beatmapSet);
}
else playButton.Hide();
}
}

View File

@ -10,7 +10,6 @@ using OpenTK.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework;
using System.Threading.Tasks;
using osu.Framework.Graphics.Textures;
namespace osu.Game.Graphics.Background
{