(4112b048e) Convert the name of the currently selected capture device to UTF8 in the settings menu, not just the available capture device names

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:56:16 +03:00
parent 896dd9469c
commit 0021a71d2d
2 changed files with 19 additions and 3 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; }