mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:43:16 +08:00
Remove useless local actions on click
This commit is contained in:
parent
cfffe5f002
commit
6c126f5223
@ -116,6 +116,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
|
||||
private void onCommit(string value)
|
||||
{
|
||||
IsLoading = true;
|
||||
CommittedText = value;
|
||||
Scheduler.AddDelayed(() => IsLoading = false, 1000);
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ using osu.Game.Graphics.UserInterface;
|
||||
using System;
|
||||
using osuTK;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics.UserInterfaceV2;
|
||||
|
||||
@ -221,22 +220,6 @@ namespace osu.Game.Overlays.Comments
|
||||
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold),
|
||||
Margin = new MarginPadding { Horizontal = 20 },
|
||||
};
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
if (!Enabled.Value)
|
||||
return false;
|
||||
|
||||
try
|
||||
{
|
||||
return base.OnClick(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
// run afterwards as this will disable this button.
|
||||
IsLoading = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user