fix: only check MCP configuration for selected client on window focus
parent
00765c5277
commit
80b7d811b0
|
|
@ -58,10 +58,10 @@ namespace UnityMcpBridge.Editor.Windows
|
|||
|
||||
private void OnFocus()
|
||||
{
|
||||
// Refresh configuration status when window gains focus
|
||||
foreach (McpClient mcpClient in mcpClients.clients)
|
||||
if (mcpClients.clients.Count > 0 && selectedClientIndex < mcpClients.clients.Count)
|
||||
{
|
||||
CheckMcpConfiguration(mcpClient);
|
||||
McpClient selectedClient = mcpClients.clients[selectedClientIndex];
|
||||
CheckMcpConfiguration(selectedClient);
|
||||
}
|
||||
Repaint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue