Skip to content

Commit

Permalink
micro-refactoring
Browse files Browse the repository at this point in the history
Logically, the _dependenciesView is bound to the _visibleDependencies list.
  • Loading branch information
idontsov committed Nov 22, 2021
1 parent 7d4585d commit 9732f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Depends/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public AppWindow(DependencyGraph graph) : base("Depends", 0)
{
_graph = graph ?? throw new ArgumentNullException(nameof(graph));
_dependencies = _graph.Nodes.OrderBy(x => x.Id).ToImmutableList();
_assembliesVisible = true;
_visibleDependencies = _dependencies;
_assembliesVisible = true;

ColorScheme = new ColorScheme
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public AppWindow(DependencyGraph graph) : base("Depends", 0)
Add(left, right, helpText);

_dependenciesView.SelectedItemChanged += (args) => UpdateLists();
_dependenciesView.SetSource(_dependencies);
_dependenciesView.SetSource(_visibleDependencies);
}

public override bool ProcessKey(KeyEvent keyEvent)
Expand Down

0 comments on commit 9732f34

Please sign in to comment.