Don't reset spectating state if gameplay is finished

This commit is contained in:
Dan Balasescu
2021-12-15 17:37:39 +09:00
parent 01ca9eb81c
commit 18d7b79207
3 changed files with 96 additions and 6 deletions

View File

@ -61,7 +61,7 @@ namespace osu.Game.Tests.Visual
((DummyAPIAccess)api).HandleRequest = request => multiplayerScreen.RequestsHandler.HandleRequest(request, api.LocalUser.Value, game);
}
public override bool OnBackButton() => multiplayerScreen.OnBackButton();
public override bool OnBackButton() => (screenStack.CurrentScreen as OsuScreen)?.OnBackButton() ?? base.OnBackButton();
public override bool OnExiting(IScreen next)
{