Browse Source

Fix #3293: Right panel shows old info in case all is deleted in the left-hand tree => start decompile with no content to finally show an empty panel.

pull/3298/head
tom-englert 7 months ago
parent
commit
91dbea2b2b
  1. 7
      ILSpy/AssemblyTree/AssemblyTreeModel.cs

7
ILSpy/AssemblyTree/AssemblyTreeModel.cs

@ -716,7 +716,12 @@ namespace ICSharpCode.ILSpy.AssemblyTree @@ -716,7 +716,12 @@ namespace ICSharpCode.ILSpy.AssemblyTree
private void TreeView_SelectionChanged()
{
if (SelectedItems.Length > 0)
if (SelectedItems.Length <= 0)
{
// To cancel any pending decompilation requests and show an empty tab
DecompileSelectedNodes();
}
else
{
var activeTabPage = DockWorkspace.Instance.ActiveTabPage;

Loading…
Cancel
Save