From 269ac15b52ee82aaf87741b47862a30cd702fc14 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Mon, 21 Aug 2017 22:15:06 -0400 Subject: [PATCH] Broken web applications are hidden now. --- JexusManager/Tree/ManagerTreeNode.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/JexusManager/Tree/ManagerTreeNode.cs b/JexusManager/Tree/ManagerTreeNode.cs index 4e02648f..7baafc1d 100644 --- a/JexusManager/Tree/ManagerTreeNode.cs +++ b/JexusManager/Tree/ManagerTreeNode.cs @@ -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); @@ -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); @@ -168,4 +178,4 @@ internal static void AddToParent(TreeNode parentNode, ManagerTreeNode appNode) parentNode.TreeView.SelectedNode = appNode; } } -} \ No newline at end of file +}