From 15721908b41d0a386224435c3b6699720e88059b Mon Sep 17 00:00:00 2001 From: tom-englert Date: Fri, 27 Sep 2024 14:58:00 +0200 Subject: [PATCH] Refresh should also refresh the content of the active tab to reflect e.g. indent size change in options tab. --- ILSpy/AssemblyTree/AssemblyTreeModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ILSpy/AssemblyTree/AssemblyTreeModel.cs b/ILSpy/AssemblyTree/AssemblyTreeModel.cs index db0a609c21..263d81d55f 100644 --- a/ILSpy/AssemblyTree/AssemblyTreeModel.cs +++ b/ILSpy/AssemblyTree/AssemblyTreeModel.cs @@ -879,6 +879,10 @@ public void Refresh() var path = GetPathForNode(SelectedItem); ShowAssemblyList(SettingsService.Instance.AssemblyListManager.LoadList(AssemblyList.ListName)); SelectNode(FindNodeByPath(path, true), inNewTabPage: false); + if (DockWorkspace.Instance.ActiveTabPage?.GetState()?.DecompiledNodes?.Any() == true) + { + DecompileSelectedNodes(); + } } }