Skip to content

Commit

Permalink
auto enable
Browse files Browse the repository at this point in the history
  • Loading branch information
nicarq committed Feb 5, 2025
1 parent bad9f02 commit 8b45878
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,12 @@ impl Node {
}
};

// Check if the tool can be enabled and enable it if possible
let mut tool = tool.clone();
if !tool.is_enabled() && tool.can_be_enabled() {
tool.enable();
}

// Save the tool to the database
match db.add_tool(tool).await {
Ok(tool) => {
Expand Down

0 comments on commit 8b45878

Please sign in to comment.