We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc16ca6 + 2b69eb1 commit eabf727Copy full SHA for eabf727
UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs
@@ -58,10 +58,10 @@ private void OnEnable()
58
59
private void OnFocus()
60
{
61
- // Refresh configuration status when window gains focus
62
- foreach (McpClient mcpClient in mcpClients.clients)
+ if (mcpClients.clients.Count > 0 && selectedClientIndex < mcpClients.clients.Count)
63
64
- CheckMcpConfiguration(mcpClient);
+ McpClient selectedClient = mcpClients.clients[selectedClientIndex];
+ CheckMcpConfiguration(selectedClient);
65
}
66
Repaint();
67
0 commit comments