Fix playlist issues with room creation

This commit is contained in:
smoogipoo
2019-02-08 15:20:11 +09:00
parent 42cd55e0d7
commit 43240ea85e
4 changed files with 19 additions and 20 deletions

View File

@ -4,6 +4,7 @@
using System;
using Humanizer;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -65,6 +66,9 @@ namespace osu.Game.Screens.Multi.Match.Components
[Resolved(CanBeNull = true)]
private IRoomManager manager { get; set; }
[Resolved]
private Bindable<Room> currentRoom { get; set; }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
@ -293,7 +297,7 @@ namespace osu.Game.Screens.Multi.Match.Components
Duration.Value = DurationField.Current.Value;
manager?.CreateRoom(Room, onSuccess, onError);
manager?.CreateRoom(currentRoom, onSuccess, onError);
processingOverlay.Show();
}