Skip to content

Commit

Permalink
nested commands are easy guys
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Feb 16, 2024
1 parent 81b35ff commit e72b1bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cascadia/TerminalApp/TasksPaneContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ namespace winrt::TerminalApp::implementation

settings;
}
MUX::Controls::TreeViewNode _buildTreeViewNode(Model::Command task)
MUX::Controls::TreeViewNode _buildTreeViewNode(const Model::Command& task)
{
MUX::Controls::TreeViewNode item{};
item.Content(winrt::box_value(task.Name()));
if (task.HasNestedCommands())
{
for (const auto& [name, nested] : task.NestedCommands())
{
item.Children().Append(_buildTreeViewNode(nested));
}
}
return item;
}
void TasksPaneContent::UpdateSettings(const CascadiaSettings& settings)
Expand Down

0 comments on commit e72b1bf

Please sign in to comment.