Skip to content

Commit 9e11b1d

Browse files
committed
Fix ActiveMode to return resolved transport mode instead of preferred mode
The ActiveMode property now calls ResolvePreferredMode() to return the actual active transport mode rather than just the preferred mode setting.
1 parent bcae2c6 commit 9e11b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MCPForUnity/Editor/Services/BridgeControlService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public int CurrentPort
7575
}
7676

7777
public bool IsAutoConnectMode => StdioBridgeHost.IsAutoConnectMode();
78-
public TransportMode? ActiveMode => _preferredMode;
78+
public TransportMode? ActiveMode => ResolvePreferredMode();
7979

8080
public async Task<bool> StartAsync()
8181
{

0 commit comments

Comments
 (0)