1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

Fix test failures due to missing dependency

This commit is contained in:
Dean Herbert 2021-03-03 15:24:55 +09:00
parent cb4c3503a0
commit 0ede28da2f

View File

@ -281,7 +281,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
Mods.Value = client.LocalUser.Mods.Select(m => m.ToMod(ruleset)).Concat(SelectedItem.Value.RequiredMods).ToList();
}
[Resolved]
[Resolved(canBeNull: true)]
private DialogOverlay dialogOverlay { get; set; }
private bool exitConfirmed;
@ -300,7 +300,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
return true;
}
if (!exitConfirmed)
if (!exitConfirmed && dialogOverlay != null)
{
dialogOverlay.Push(new ConfirmDialog("leave this multiplayer match", () =>
{