1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

move commitButton.Text update to appropriate method

This commit is contained in:
Liam DeVoe 2023-06-21 00:37:54 -04:00
parent 343052410b
commit 8460873e61

View File

@ -169,13 +169,13 @@ namespace osu.Game.Overlays.Comments
{
bool textBoxValid = loadingSpinner.State.Value == Visibility.Hidden && !string.IsNullOrEmpty(Current.Value);
commitButton.Enabled.Value = textBoxValid || !API.IsLoggedIn;
commitButton.Text = GetCommitButtonText(API.IsLoggedIn);
}
private void updateStateForLoggedIn()
{
TextBox.PlaceholderText = GetPlaceholderText(API.IsLoggedIn);
TextBox.ReadOnly = !API.IsLoggedIn;
commitButton.Text = GetCommitButtonText(API.IsLoggedIn);
updateCommitButtonState();
}