Skip to content

Commit

Permalink
Fix #3293: Right panel shows old info in case all is deleted in the l…
Browse files Browse the repository at this point in the history
…eft-hand tree => start decompile with no content to finally show an empty panel.
  • Loading branch information
tom-englert committed Oct 6, 2024
1 parent ac43abb commit 91dbea2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ILSpy/AssemblyTree/AssemblyTreeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,12 @@ private void LoadAssemblies(IEnumerable<string> fileNames, List<LoadedAssembly>?

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;

Expand Down

0 comments on commit 91dbea2

Please sign in to comment.