mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user