Do not keep the wrong password in the textfield for next try.
This commit is contained in:
@@ -114,7 +114,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (passwordField != null)
|
if (passwordField != null)
|
||||||
{
|
{
|
||||||
passwordField.TakeKeyboardFocus();
|
passwordField.TakeKeyboardFocus();
|
||||||
passwordField.Text = orderManager.Password;
|
|
||||||
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
|
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
|
||||||
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");
|
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");
|
||||||
passwordLabel.IsVisible = passwordField.IsVisible;
|
passwordLabel.IsVisible = passwordField.IsVisible;
|
||||||
|
|||||||
Reference in New Issue
Block a user