From 4e7c30504f2af736806c4839ea42df0c56e6b965 Mon Sep 17 00:00:00 2001
From: ansel <79257300125@ya.ru>
Date: Sat, 8 Oct 2022 17:15:10 +0300
Subject: [PATCH] Schedule action buttons visibility changes
---
osu.Game/Overlays/Comments/DrawableComment.cs | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/osu.Game/Overlays/Comments/DrawableComment.cs b/osu.Game/Overlays/Comments/DrawableComment.cs
index 87545ee6a3..3cb7db0ec2 100644
--- a/osu.Game/Overlays/Comments/DrawableComment.cs
+++ b/osu.Game/Overlays/Comments/DrawableComment.cs
@@ -352,9 +352,9 @@ namespace osu.Game.Overlays.Comments
};
}
- /**
- * Invokes comment deletion with confirmation.
- */
+ ///
+ /// Invokes comment deletion with confirmation.
+ ///
private void deleteComment()
{
if (dialogOverlay == null)
@@ -363,27 +363,27 @@ namespace osu.Game.Overlays.Comments
dialogOverlay.Push(new ConfirmDialog("Do you really want to delete your comment?", deleteCommentRequest));
}
- /**
- * Invokes comment deletion directly.
- */
+ ///
+ /// Invokes comment deletion directly.
+ ///
private void deleteCommentRequest()
{
actionsContainer.Hide();
actionsLoading.Show();
var request = new CommentDeleteRequest(Comment.Id);
- request.Success += _ =>
+ request.Success += _ => Schedule(() =>
{
actionsLoading.Hide();
AutoSizeAxes = Axes.None;
Masking = true;
this.ResizeHeightTo(0, 1000, Easing.Out);
this.FadeOut(1000, Easing.Out).Expire();
- };
- request.Failure += _ =>
+ });
+ request.Failure += _ => Schedule(() =>
{
actionsLoading.Hide();
actionsContainer.Show();
- };
+ });
api.Queue(request);
}