Browse Source

Fix #3284: AssemblyTree title is wrong

pull/3285/head
tom-englert 8 months ago
parent
commit
22c5735ada
  1. 13
      ILSpy/AssemblyTree/AssemblyTreeModel.cs

13
ILSpy/AssemblyTree/AssemblyTreeModel.cs

@ -418,17 +418,22 @@ namespace ICSharpCode.ILSpy.AssemblyTree @@ -418,17 +418,22 @@ namespace ICSharpCode.ILSpy.AssemblyTree
Root = assemblyListTreeNode;
var mainWindow = Application.Current?.MainWindow;
if (mainWindow == null)
return;
if (assemblyList.ListName == AssemblyListManager.DefaultListName)
#if DEBUG
this.Title = $"ILSpy {DecompilerVersionInfo.FullVersion}";
mainWindow.Title = $"ILSpy {DecompilerVersionInfo.FullVersion}";
#else
this.Title = "ILSpy";
mainWindow.Title = "ILSpy";
#endif
else
#if DEBUG
this.Title = $"ILSpy {DecompilerVersionInfo.FullVersion} - " + assemblyList.ListName;
mainWindow.Title = $"ILSpy {DecompilerVersionInfo.FullVersion} - " + assemblyList.ListName;
#else
this.Title = "ILSpy - " + assemblyList.ListName;
mainWindow.Title = "ILSpy - " + assemblyList.ListName;
#endif
}

Loading…
Cancel
Save