mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Fix issue where MCP toggle turns off other checkboxes
This commit is contained in:
@@ -445,10 +445,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|||||||
<div style={{ marginBottom: 5 }}>
|
<div style={{ marginBottom: 5 }}>
|
||||||
<VSCodeCheckbox
|
<VSCodeCheckbox
|
||||||
checked={alwaysAllowMcp}
|
checked={alwaysAllowMcp}
|
||||||
onChange={(e: any) => {
|
onChange={(e: any) => setAlwaysAllowMcp(e.target.checked)}>
|
||||||
setAlwaysAllowMcp(e.target.checked)
|
|
||||||
vscode.postMessage({ type: "alwaysAllowMcp", bool: e.target.checked })
|
|
||||||
}}>
|
|
||||||
<span style={{ fontWeight: "500" }}>Always approve MCP tools</span>
|
<span style={{ fontWeight: "500" }}>Always approve MCP tools</span>
|
||||||
</VSCodeCheckbox>
|
</VSCodeCheckbox>
|
||||||
<p style={{ fontSize: "12px", marginTop: "5px", color: "var(--vscode-descriptionForeground)" }}>
|
<p style={{ fontSize: "12px", marginTop: "5px", color: "var(--vscode-descriptionForeground)" }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user