Skip to content

Commit cc66dd0

Browse files
sharpninjaCopilot
andcommitted
Fix ANR: only set SelectedNode for leaf nodes, not directories
Directory/agent taps now only toggle expand/collapse without triggering heavy MCP data loading via GenerateAndNavigate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a38c535 commit cc66dd0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/RequestTracker.Core/ViewModels/MainWindowViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ private void TreeItemTapped(FileNode? node)
240240
}
241241
}
242242
}
243+
return;
243244
}
244245
SelectedNode = node;
245246
}

0 commit comments

Comments
 (0)