Fix comment cancel button not behaving the same as reply text toggle

- Removed the fading animation as it is awkward right now (needs resizing)
This commit is contained in:
Joseph Madamba 2023-02-03 00:48:32 -08:00
parent 94d2799b90
commit 461b5c5375
2 changed files with 2 additions and 3 deletions

View File

@ -460,7 +460,8 @@ private void toggleReply()
Comment.RepliesCount += comments.Length;
showRepliesButton.Count = Comment.RepliesCount;
Replies.AddRange(comments);
}
},
OnCancel = toggleReply
});
}
else

View File

@ -4,7 +4,6 @@
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Framework.Logging;
using osu.Game.Online.API;
@ -33,7 +32,6 @@ public partial class ReplyCommentEditor : CancellableCommentEditor
public ReplyCommentEditor(Comment parent)
{
parentComment = parent;
OnCancel = () => this.FadeOut(200).Expire();
}
protected override void LoadComplete()