don't allow switching to the connected host

This commit is contained in:
baldurk
2016-08-29 19:42:17 +02:00
parent a6b54e33fd
commit 13b09e410b
+4
View File
@@ -1102,6 +1102,10 @@ namespace renderdocui.Windows
item.Click += new EventHandler(switchContext);
item.Tag = host;
// don't allow switching to the connected host
if (host.Connected)
item.Enabled = false;
items[idx++] = item;
}