1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 00:53:21 +08:00

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) public bool OnPressed(GlobalAction action)
{ {
if (beatmap.Disabled)
return false;
switch (action) switch (action)
{ {
case GlobalAction.MusicPlay: case GlobalAction.MusicPlay: