mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Fix test failures
This commit is contained in:
@ -55,7 +55,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(canBeNull: true)]
|
||||||
private DialogOverlay dialogOverlay { get; set; }
|
private DialogOverlay dialogOverlay { get; set; }
|
||||||
|
|
||||||
private BackgroundScreenDefault background;
|
private BackgroundScreenDefault background;
|
||||||
@ -237,9 +237,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
public override bool OnExiting(IScreen next)
|
public override bool OnExiting(IScreen next)
|
||||||
{
|
{
|
||||||
if (holdDelay.Value == 0 && !exitConfirmed)
|
if (holdDelay.Value == 0 && !exitConfirmed && dialogOverlay != null)
|
||||||
{
|
{
|
||||||
dialogOverlay?.Push(new ConfirmExitDialog(() =>
|
dialogOverlay.Push(new ConfirmExitDialog(() =>
|
||||||
{
|
{
|
||||||
exitConfirmed = true;
|
exitConfirmed = true;
|
||||||
this.Exit();
|
this.Exit();
|
||||||
|
Reference in New Issue
Block a user