1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Fix dependency lookup failing due to location of PopoverContainer

This commit is contained in:
Dean Herbert 2021-07-17 15:04:18 +09:00
parent d609839ff6
commit c966cb0530

View File

@ -243,7 +243,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
Alpha = 0; Alpha = 0;
} }
public Popover GetPopover() => new PasswordEntryPopover(Room); public Popover GetPopover() => new PasswordEntryPopover(Room) { JoinRequested = lounge.Join };
public MenuItem[] ContextMenuItems => new MenuItem[] public MenuItem[] ContextMenuItems => new MenuItem[]
{ {
@ -350,8 +350,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
{ {
private readonly Room room; private readonly Room room;
[Resolved(canBeNull: true)] public Action<Room, string> JoinRequested;
private LoungeSubScreen lounge { get; set; }
public PasswordEntryPopover(Room room) public PasswordEntryPopover(Room room)
{ {
@ -379,7 +378,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
{ {
Width = 80, Width = 80,
Text = "Join Room", Text = "Join Room",
Action = () => lounge?.Join(room, passwordTextbox.Text) Action = () => JoinRequested?.Invoke(room, passwordTextbox.Text)
} }
} }
}; };