mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:03:12 +08:00
Merge pull request #15733 from smoogipoo/fix-queue-binding
Fix queue mode dropdown not updated on change
This commit is contained in:
commit
1020fb7323
@ -63,6 +63,17 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddAssert("second playlist item changed", () => Client.APIRoom?.Playlist[1].Beatmap.Value != firstBeatmap);
|
AddAssert("second playlist item changed", () => Client.APIRoom?.Playlist[1].Beatmap.Value != firstBeatmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestSettingsUpdatedWhenChangingQueueMode()
|
||||||
|
{
|
||||||
|
AddStep("change queue mode", () => Client.ChangeSettings(new MultiplayerRoomSettings
|
||||||
|
{
|
||||||
|
QueueMode = QueueMode.AllPlayers
|
||||||
|
}));
|
||||||
|
|
||||||
|
AddUntilStep("api room updated", () => Client.APIRoom?.QueueMode.Value == QueueMode.AllPlayers);
|
||||||
|
}
|
||||||
|
|
||||||
private void selectNewItem(Func<BeatmapInfo> beatmap)
|
private void selectNewItem(Func<BeatmapInfo> beatmap)
|
||||||
{
|
{
|
||||||
AddStep("click edit button", () =>
|
AddStep("click edit button", () =>
|
||||||
|
@ -697,6 +697,7 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
Room.Settings = settings;
|
Room.Settings = settings;
|
||||||
APIRoom.Name.Value = Room.Settings.Name;
|
APIRoom.Name.Value = Room.Settings.Name;
|
||||||
APIRoom.Password.Value = Room.Settings.Password;
|
APIRoom.Password.Value = Room.Settings.Password;
|
||||||
|
APIRoom.QueueMode.Value = Room.Settings.QueueMode;
|
||||||
RoomUpdated?.Invoke();
|
RoomUpdated?.Invoke();
|
||||||
|
|
||||||
CurrentMatchPlayingItem.Value = APIRoom.Playlist.SingleOrDefault(p => p.ID == settings.PlaylistItemId);
|
CurrentMatchPlayingItem.Value = APIRoom.Playlist.SingleOrDefault(p => p.ID == settings.PlaylistItemId);
|
||||||
|
Loading…
Reference in New Issue
Block a user