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.
1 parent 00765c5 commit 80b7d81Copy full SHA for 80b7d81
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