1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Don't require hold for quick exit at results screen

This commit is contained in:
Dean Herbert 2024-04-20 04:53:31 +08:00
parent f92833b588
commit 4cffc39dff
No known key found for this signature in database

View File

@ -191,16 +191,6 @@ namespace osu.Game.Screens.Ranking
}); });
} }
AddInternal(new HotkeyExitOverlay
{
Action = () =>
{
if (!this.IsCurrentScreen()) return;
this.Exit();
},
});
if (player != null && AllowRetry) if (player != null && AllowRetry)
{ {
buttons.Add(new RetryButton { Width = 300 }); buttons.Add(new RetryButton { Width = 300 });
@ -400,6 +390,15 @@ namespace osu.Game.Screens.Ranking
switch (e.Action) switch (e.Action)
{ {
case GlobalAction.QuickExit:
if (this.IsCurrentScreen())
{
this.Exit();
return true;
}
break;
case GlobalAction.Select: case GlobalAction.Select:
StatisticsPanel.ToggleVisibility(); StatisticsPanel.ToggleVisibility();
return true; return true;