1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Adapt to changes in base class

This commit is contained in:
ansel 2023-01-14 02:41:11 +03:00
parent e9995410e8
commit 9e7ecbf4a1

View File

@ -429,15 +429,15 @@ namespace osu.Game.Overlays.Comments
protected override void OnCommit(string text)
{
CommitButton.IsLoadingSpinnerShown = true;
ShowLoadingSpinner = true;
CommentPostRequest req = new CommentPostRequest(CommentableType.Value, CommentableId.Value, text);
req.Failure += _ => Schedule(() =>
{
CommitButton.IsLoadingSpinnerShown = false;
ShowLoadingSpinner = false;
});
req.Success += cb => Schedule(() =>
{
CommitButton.IsLoadingSpinnerShown = false;
ShowLoadingSpinner = false;
Current.Value = string.Empty;
OnPost?.Invoke(cb);
});