mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 15:23:09 +08:00
Remove unnecessary action from ShowRepliesButton
This commit is contained in:
parent
4c2294f0cd
commit
28006ac33f
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using Humanizer;
|
using Humanizer;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
@ -10,8 +9,6 @@ namespace osu.Game.Overlays.Comments.Buttons
|
|||||||
{
|
{
|
||||||
public class ShowRepliesButton : CommentRepliesButton
|
public class ShowRepliesButton : CommentRepliesButton
|
||||||
{
|
{
|
||||||
public Action Action;
|
|
||||||
|
|
||||||
public readonly BindableBool Expanded = new BindableBool(true);
|
public readonly BindableBool Expanded = new BindableBool(true);
|
||||||
|
|
||||||
public ShowRepliesButton(int count)
|
public ShowRepliesButton(int count)
|
||||||
@ -28,7 +25,6 @@ namespace osu.Game.Overlays.Comments.Buttons
|
|||||||
protected override bool OnClick(ClickEvent e)
|
protected override bool OnClick(ClickEvent e)
|
||||||
{
|
{
|
||||||
Expanded.Toggle();
|
Expanded.Toggle();
|
||||||
Action?.Invoke();
|
|
||||||
return base.OnClick(e);
|
return base.OnClick(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user