mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
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:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user