mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Disable music controls when beatmap is disabled
This commit is contained in:
parent
8307ee330c
commit
3a79a4149a
@ -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…
x
Reference in New Issue
Block a user