Skip to content

Commit

Permalink
Broken web applications are hidden now.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Aug 22, 2017
1 parent 89a3c1a commit 269ac15
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion JexusManager/Tree/ManagerTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ protected void LoadChildren(Application rootApp, int rootLevel, string rootFolde
continue;
}

if (app.VirtualDirectories.Count == 0)
{
continue;
}

loaded.Add(app.Path);
var appNode = new ApplicationTreeNode(ServiceProvider, app, ServerNode) { ContextMenuStrip = appMenu };
treeNodes.Add(appNode);
Expand Down Expand Up @@ -119,6 +124,11 @@ protected void LoadChildren(Application rootApp, int rootLevel, string rootFolde
continue;
}

if (application.VirtualDirectories.Count == 0)
{
continue;
}

// IMPORTANT: only create level+1 physical nodes.
var appNode = new ApplicationTreeNode(ServiceProvider, application, ServerNode) { ContextMenuStrip = appMenu };
treeNodes.Add(appNode);
Expand Down Expand Up @@ -168,4 +178,4 @@ internal static void AddToParent(TreeNode parentNode, ManagerTreeNode appNode)
parentNode.TreeView.SelectedNode = appNode;
}
}
}
}

0 comments on commit 269ac15

Please sign in to comment.