Don't disable inputs when selecting localhost

* If there aren't any other host, then selecting localhost will still
  need to keep the option to add a new host
This commit is contained in:
baldurk
2016-09-12 18:20:45 +02:00
parent 6518d8bdf8
commit 588d6149cd
+4 -4
View File
@@ -282,18 +282,18 @@ namespace renderdocui.Windows.Dialogs
if (refreshAll.Enabled)
refreshOne.Enabled = true;
addUpdateHost.Text = "Update";
if (host.Hostname == "localhost")
{
hostname.Enabled = addUpdateHost.Enabled = runCommand.Enabled = false;
hostname.Text = "localhost";
hostname.Text = "";
runCommand.Text = "";
}
else
{
deleteHost.Enabled = true;
runCommand.Text = host.RunCommand;
hostname.Text = host.Hostname;
addUpdateHost.Text = "Update";
}
}
}