assistant2: Ensure scripting tool gets disabled when switching profiles (#27244)
This PR fixes an issue where the scripting tool wasn't being disabled when switching to a profile that did not have it enabled. Release Notes: - N/A
This commit is contained in:
parent
e14ebcf267
commit
6bced3a834
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ impl ToolSelector {
|
||||||
let tools = tool_set.clone();
|
let tools = tool_set.clone();
|
||||||
move |_window, cx| {
|
move |_window, cx| {
|
||||||
tools.disable_source(ToolSource::Native, cx);
|
tools.disable_source(ToolSource::Native, cx);
|
||||||
|
tools.disable_scripting_tool();
|
||||||
tools.enable(
|
tools.enable(
|
||||||
ToolSource::Native,
|
ToolSource::Native,
|
||||||
&profile
|
&profile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue