Do not keep the wrong password in the textfield for next try.

This commit is contained in:
HenrytheSlav
2016-06-26 15:54:41 +02:00
parent d19c9eadb0
commit 17d6afa071

View File

@@ -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;