(53329f471) Fixed translated connection names not being used in the connection panel interface

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:39:41 +03:00
parent 049cdbd81c
commit 744fb70829
3 changed files with 66 additions and 74 deletions
@@ -218,6 +218,22 @@ namespace Barotrauma
return true;
}
private bool RefreshJoinButtonState(GUIComponent component, object obj)
{
if (obj == null || waitingForRefresh) { return false; }
if (!string.IsNullOrWhiteSpace(clientNameBox.Text) && !string.IsNullOrWhiteSpace(ipBox.Text))
{
joinButton.Enabled = true;
}
else
{
joinButton.Enabled = false;
}
return true;
}
private bool SelectServer(GUIComponent component, object obj)
{
if (obj == null || waitingForRefresh) { return false; }