Browse Source

Fix title bar content in debug builds.

pull/1409/head
Siegfried Pammer 7 years ago
parent
commit
98692e2fed
  1. 11
      ILSpy/MainWindow.xaml.cs

11
ILSpy/MainWindow.xaml.cs

@ -381,9 +381,6 @@ namespace ICSharpCode.ILSpy @@ -381,9 +381,6 @@ namespace ICSharpCode.ILSpy
}
Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() => OpenAssemblies(spySettings)));
#if DEBUG
this.Title = $"ILSpy {RevisionClass.FullVersion}";
#endif
}
void OpenAssemblies(ILSpySettings spySettings)
@ -508,9 +505,17 @@ namespace ICSharpCode.ILSpy @@ -508,9 +505,17 @@ namespace ICSharpCode.ILSpy
treeView.Root = assemblyListTreeNode;
if (assemblyList.ListName == AssemblyListManager.DefaultListName)
#if DEBUG
this.Title = $"ILSpy {RevisionClass.FullVersion}";
#else
this.Title = "ILSpy";
#endif
else
#if DEBUG
this.Title = $"ILSpy {RevisionClass.FullVersion} - " + assemblyList.ListName;
#else
this.Title = "ILSpy - " + assemblyList.ListName;
#endif
}
void assemblyList_Assemblies_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

Loading…
Cancel
Save