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:
commit
69adba22b2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user