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()
|
private void OnFocus()
|
||||||
{
|
{
|
||||||
// Refresh configuration status when window gains focus
|
if (mcpClients.clients.Count > 0 && selectedClientIndex < mcpClients.clients.Count)
|
||||||
foreach (McpClient mcpClient in mcpClients.clients)
|
|
||||||
{
|
{
|
||||||
CheckMcpConfiguration(mcpClient);
|
McpClient selectedClient = mcpClients.clients[selectedClientIndex];
|
||||||
|
CheckMcpConfiguration(selectedClient);
|
||||||
}
|
}
|
||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue