Add logging for various cases of `SongSelect.FinaliseSelection` being aborted

This commit is contained in:
Dean Herbert 2022-06-27 20:10:15 +09:00
parent f355c3a3c9
commit aa7d54f8b6
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@
using System.Threading.Tasks;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Logging;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
@ -78,7 +79,10 @@ private void updateLoadingLayer()
protected override bool SelectItem(PlaylistItem item)
{
if (operationInProgress.Value)
{
Logger.Log($"{nameof(SelectedItem)} aborted due to {nameof(operationInProgress)}");
return false;
}
// If the client is already in a room, update via the client.
// Otherwise, update the playlist directly in preparation for it to be submitted to the API on match creation.

View File

@ -360,7 +360,10 @@ public void FinaliseSelection(BeatmapInfo beatmapInfo = null, RulesetInfo rulese
{
// This is very important as we have not yet bound to screen-level bindables before the carousel load is completed.
if (!Carousel.BeatmapSetsLoaded)
{
Logger.Log($"{nameof(FinaliseSelection)} aborted as carousel beatmaps are not yet loaded");
return;
}
if (ruleset != null)
Ruleset.Value = ruleset;