Always display ZB's version number in the title.

This commit is contained in:
sphere 2021-10-24 22:56:31 +02:00
parent 650b5aae88
commit b95dcc21b0

View file

@ -417,6 +417,7 @@ namespace CodeImp.DoomBuilder.Windows
//mxd
private void UpdateTitle()
{
string programname = Application.ProductName + " v" + General.ThisAssembly.GetName().Version.Major + "." + General.ThisAssembly.GetName().Version.Minor;
// Map opened?
if (General.Map != null)
{
@ -424,7 +425,7 @@ namespace CodeImp.DoomBuilder.Windows
string maptitle = (!string.IsNullOrEmpty(General.Map.Data.MapInfo.Title) ? ": " + General.Map.Data.MapInfo.Title : "");
// Show map name and filename in caption
this.Text = (mapchanged ? "\u25CF " : "") + General.Map.FileTitle + " (" + General.Map.Options.CurrentName + ") - " + Application.ProductName;
this.Text = (mapchanged ? "\u25CF " : "") + General.Map.FileTitle + " (" + General.Map.Options.CurrentName + ") - " + programname;
}
else
{
@ -432,7 +433,7 @@ namespace CodeImp.DoomBuilder.Windows
#if DEBUG
this.Text = Application.ProductName + " - DEVBUILD";
#else
this.Text = Application.ProductName + " v" + General.ThisAssembly.GetName().Version.Major + "." + General.ThisAssembly.GetName().Version.Minor;
this.Text = programname;
#endif
}
}