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:
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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user