diff --git a/osu.Game.Tests/Visual/UserInterface/TestSceneCommentEditor.cs b/osu.Game.Tests/Visual/UserInterface/TestSceneCommentEditor.cs
index 61c3fc54ad..43dcba99df 100644
--- a/osu.Game.Tests/Visual/UserInterface/TestSceneCommentEditor.cs
+++ b/osu.Game.Tests/Visual/UserInterface/TestSceneCommentEditor.cs
@@ -116,9 +116,9 @@ namespace osu.Game.Tests.Visual.UserInterface
private void onCommit(string value)
{
- CommitButton.IsLoading = true;
+ CommitButton.IsLoadingSpinnerShown = true;
CommittedText = value;
- Scheduler.AddDelayed(() => CommitButton.IsLoading = false, 1000);
+ Scheduler.AddDelayed(() => CommitButton.IsLoadingSpinnerShown = false, 1000);
}
protected override LocalisableString FooterText => @"Footer text. And it is pretty long. Cool.";
diff --git a/osu.Game/Overlays/Comments/CommentEditor.cs b/osu.Game/Overlays/Comments/CommentEditor.cs
index c9e1f6d224..458b4b2a2d 100644
--- a/osu.Game/Overlays/Comments/CommentEditor.cs
+++ b/osu.Game/Overlays/Comments/CommentEditor.cs
@@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Comments
///
/// Whether editor is waiting for submit action to complete.
///
- public bool IsSubmitting => CommitButton.IsLoading;
+ public bool IsSubmitting => CommitButton.IsLoadingSpinnerShown;
protected abstract LocalisableString FooterText { get; }
@@ -118,7 +118,7 @@ namespace osu.Game.Overlays.Comments
textBox.OnCommit += (_, _) =>
{
- if (CommitButton.IsLoading)
+ if (CommitButton.IsLoadingSpinnerShown)
return;
CommitButton.TriggerClick();
@@ -171,21 +171,21 @@ namespace osu.Game.Overlays.Comments
private const int duration = 200;
private readonly LoadingSpinner spinner;
- private OsuSpriteText text = null!;
+ private readonly OsuSpriteText text = null!;
public readonly BindableBool IsBlocked = new BindableBool();
- private bool isLoading;
+ private bool isLoadingSpinnerShown;
///
/// Whether loading spinner shown.
///
- public bool IsLoading
+ public bool IsLoadingSpinnerShown
{
- get => isLoading;
+ get => isLoadingSpinnerShown;
set
{
- isLoading = value;
+ isLoadingSpinnerShown = value;
Enabled.Value = !value && !IsBlocked.Value;
spinner.FadeTo(value ? 1f : 0f, duration, Easing.OutQuint);
text.FadeTo(value ? 0f : 1f, duration, Easing.OutQuint);
@@ -210,7 +210,7 @@ namespace osu.Game.Overlays.Comments
base.LoadComplete();
IsBlocked.BindValueChanged(e =>
{
- Enabled.Value = !IsLoading && !e.NewValue;
+ Enabled.Value = !IsLoadingSpinnerShown && !e.NewValue;
}, true);
}
}