Disable music controls when beatmap is disabled (#5710)

Disable music controls when beatmap is disabled
This commit is contained in:
Dean Herbert 2019-08-14 17:46:00 +09:00 committed by GitHub
commit 69adba22b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,9 @@ namespace osu.Game.Overlays
public bool OnPressed(GlobalAction action)
{
if (beatmap.Disabled)
return false;
switch (action)
{
case GlobalAction.MusicPlay: