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
Root = assemblyListTreeNode; Root = assemblyListTreeNode;
var mainWindow = Application.Current?.MainWindow;
if (mainWindow == null)
return;
if (assemblyList.ListName == AssemblyListManager.DefaultListName) if (assemblyList.ListName == AssemblyListManager.DefaultListName)
#if DEBUG #if DEBUG
this.Title = $"ILSpy {DecompilerVersionInfo.FullVersion}"; mainWindow.Title = $"ILSpy {DecompilerVersionInfo.FullVersion}";
#else #else
this.Title = "ILSpy"; mainWindow.Title = "ILSpy";
#endif #endif
else else
#if DEBUG #if DEBUG
this.Title = $"ILSpy {DecompilerVersionInfo.FullVersion} - " + assemblyList.ListName; mainWindow.Title = $"ILSpy {DecompilerVersionInfo.FullVersion} - " + assemblyList.ListName;
#else #else
this.Title = "ILSpy - " + assemblyList.ListName; mainWindow.Title = "ILSpy - " + assemblyList.ListName;
#endif #endif
} }

Loading…
Cancel
Save