Skip to content

Commit a7d7bcd

Browse files
committed
Editor: on macOS, prefer macConfigPath in ManualConfigEditorWindow (fallback to linux path); Linux/Windows unchanged.
1 parent 88b6390 commit a7d7bcd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,13 @@ protected virtual void OnGUI()
116116
{
117117
displayPath = mcpClient.windowsConfigPath;
118118
}
119-
else if (
120-
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
121-
|| RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
122-
)
119+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
120+
{
121+
displayPath = string.IsNullOrEmpty(mcpClient.macConfigPath)
122+
? mcpClient.linuxConfigPath
123+
: mcpClient.macConfigPath;
124+
}
125+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
123126
{
124127
displayPath = mcpClient.linuxConfigPath;
125128
}

0 commit comments

Comments
 (0)