Fix ruleset value not being transferred when FinaliseSelection is not called

This commit is contained in:
Dean Herbert
2022-01-29 18:38:45 +09:00
parent 4c97ed676f
commit e7823982d8

View File

@ -619,6 +619,10 @@ namespace osu.Game.Screens.Select
public override void OnSuspending(IScreen next)
{
// Handle the case where FinaliseSelection is never called (ie. when a screen is pushed externally).
// Without this, it's possible for a transfer to happen while we are not the current screen.
transferRulesetValue();
ModSelect.SelectedMods.UnbindFrom(selectedMods);
ModSelect.Hide();