1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Merge pull request #16659 from bdach/fix-tournament-not-loading

Fix tournament client not loading
This commit is contained in:
Dean Herbert 2022-01-28 01:32:59 +09:00 committed by GitHub
commit 8508e0d512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,18 +61,15 @@ namespace osu.Game.Tournament
loadingSpinner.Show(); loadingSpinner.Show();
BracketLoadTask.ContinueWith(t => BracketLoadTask.ContinueWith(t => Schedule(() =>
{ {
if (t.IsFaulted) if (t.IsFaulted)
{
Schedule(() =>
{ {
loadingSpinner.Hide(); loadingSpinner.Hide();
loadingSpinner.Expire(); loadingSpinner.Expire();
Logger.Error(t.Exception, "Couldn't load bracket with error"); Logger.Error(t.Exception, "Couldn't load bracket with error");
Add(new WarningBox($"Your {BRACKET_FILENAME} file could not be parsed. Please check runtime.log for more details.")); Add(new WarningBox($"Your {BRACKET_FILENAME} file could not be parsed. Please check runtime.log for more details."));
});
return; return;
} }
@ -143,7 +140,7 @@ namespace osu.Game.Tournament
windowMode.Value = WindowMode.Windowed; windowMode.Value = WindowMode.Windowed;
}), true); }), true);
}); });
}); }));
} }
} }
} }