mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Only apply disable rules when in a screen stack.
This commit is contained in:
parent
54f6befd67
commit
04e99d1369
@ -89,8 +89,13 @@ namespace osu.Game.Screens
|
|||||||
{
|
{
|
||||||
if (!IsCurrentScreen) return;
|
if (!IsCurrentScreen) return;
|
||||||
|
|
||||||
ruleset.Disabled = !AllowBeatmapRulesetChange;
|
if (ParentScreen != null)
|
||||||
beatmap.Disabled = !AllowBeatmapRulesetChange;
|
{
|
||||||
|
// we only want to apply these restrictions when we are inside a screen stack.
|
||||||
|
// the use case for not applying is in visual/unit tests.
|
||||||
|
ruleset.Disabled = !AllowBeatmapRulesetChange;
|
||||||
|
beatmap.Disabled = !AllowBeatmapRulesetChange;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnResuming(Screen last)
|
protected override void OnResuming(Screen last)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user