mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Re-enable ruleset bindable before setting defined ruleset in case it's disabled
Happens on cases like restarting the test scene by clicking directly on it on the browser (*where it for some reason reloads the entire test scene*)
This commit is contained in:
parent
155bc8b49a
commit
7f791dcdf0
@ -75,6 +75,10 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
if (definedRuleset != null)
|
||||
{
|
||||
// re-enable the bindable in case it was disabled.
|
||||
// happens when restarting current test scene.
|
||||
Ruleset.Disabled = false;
|
||||
|
||||
// Set global ruleset bindable to the ruleset defined
|
||||
// for this test scene and disallow changing it.
|
||||
Ruleset.Value = definedRuleset;
|
||||
|
Loading…
Reference in New Issue
Block a user