mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 13:51:31 +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:
1 parent
6518d8bdf8
commit
588d6149cd
1 file changed
+4
-4
@@ -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