From 0b093c9a329abf32d6c71d0276c1415d0d8915de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bj=C3=B6rkstr=C3=B6m?= Date: Sun, 28 Nov 2021 20:23:47 +0200 Subject: [PATCH] Toggle assemblies visibility off by default --- src/Depends/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Depends/Program.cs b/src/Depends/Program.cs index 3bd09f2..e1ee169 100644 --- a/src/Depends/Program.cs +++ b/src/Depends/Program.cs @@ -172,8 +172,8 @@ public AppWindow(DependencyGraph graph) : base("Depends", 0) { _graph = graph ?? throw new ArgumentNullException(nameof(graph)); _dependencies = _graph.Nodes.OrderBy(x => x.Id).ToImmutableList(); - _visibleDependencies = _dependencies; - _assembliesVisible = true; + _visibleDependencies = _dependencies.Where(d => !(d is AssemblyReferenceNode)).ToImmutableList(); + _assembliesVisible = false; _lastSelectedDependencyIndex = -1; ColorScheme = new ColorScheme