1
0
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:
Salman Ahmed 2020-04-17 10:57:58 +03:00
parent 155bc8b49a
commit 7f791dcdf0

View File

@ -75,6 +75,10 @@ namespace osu.Game.Tests.Visual
if (definedRuleset != null) 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 // Set global ruleset bindable to the ruleset defined
// for this test scene and disallow changing it. // for this test scene and disallow changing it.
Ruleset.Value = definedRuleset; Ruleset.Value = definedRuleset;