mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:02:59 +08:00
Fix alt-f4 being blocked during gameplay
This commit is contained in:
parent
8d6a177a6b
commit
a69b9f1148
@ -299,7 +299,10 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (!this.IsCurrentScreen()) return;
|
if (!this.IsCurrentScreen()) return;
|
||||||
|
|
||||||
this.Exit();
|
if (canPause)
|
||||||
|
Pause();
|
||||||
|
else
|
||||||
|
this.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
@ -508,12 +511,6 @@ namespace osu.Game.Screens.Play
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canPause)
|
|
||||||
{
|
|
||||||
Pause();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ValidForResume is false when restarting
|
// ValidForResume is false when restarting
|
||||||
if (ValidForResume)
|
if (ValidForResume)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user