1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +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(); 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 DialogOverlay dialogOverlay { get; set; }
private bool exitConfirmed; private bool exitConfirmed;
@ -300,7 +300,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
return true; return true;
} }
if (!exitConfirmed) if (!exitConfirmed && dialogOverlay != null)
{ {
dialogOverlay.Push(new ConfirmDialog("leave this multiplayer match", () => dialogOverlay.Push(new ConfirmDialog("leave this multiplayer match", () =>
{ {