1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 07:09:53 +08:00

Adapt to changes in base class

This commit is contained in:
ansel
2023-01-14 02:41:11 +03:00
Unverified
parent e9995410e8
commit 9e7ecbf4a1
@@ -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);
});