From 98692e2fedcfc03a00f93e00aa75499b854c8aa0 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 26 Jan 2019 09:26:32 +0100 Subject: [PATCH] Fix title bar content in debug builds. --- ILSpy/MainWindow.xaml.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ILSpy/MainWindow.xaml.cs b/ILSpy/MainWindow.xaml.cs index d5cbbddbd..68e57b8d7 100644 --- a/ILSpy/MainWindow.xaml.cs +++ b/ILSpy/MainWindow.xaml.cs @@ -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,11 +505,19 @@ 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) { if (e.Action == NotifyCollectionChangedAction.Reset) {