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:
parent
343052410b
commit
8460873e61
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user