mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Always display ZB's version number in the title.
This commit is contained in:
parent
650b5aae88
commit
b95dcc21b0
1 changed files with 4 additions and 3 deletions
|
@ -417,14 +417,15 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
//mxd
|
//mxd
|
||||||
private void UpdateTitle()
|
private void UpdateTitle()
|
||||||
{
|
{
|
||||||
|
string programname = Application.ProductName + " v" + General.ThisAssembly.GetName().Version.Major + "." + General.ThisAssembly.GetName().Version.Minor;
|
||||||
// Map opened?
|
// Map opened?
|
||||||
if(General.Map != null)
|
if (General.Map != null)
|
||||||
{
|
{
|
||||||
// Get nice name
|
// Get nice name
|
||||||
string maptitle = (!string.IsNullOrEmpty(General.Map.Data.MapInfo.Title) ? ": " + General.Map.Data.MapInfo.Title : "");
|
string maptitle = (!string.IsNullOrEmpty(General.Map.Data.MapInfo.Title) ? ": " + General.Map.Data.MapInfo.Title : "");
|
||||||
|
|
||||||
// Show map name and filename in caption
|
// 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
|
else
|
||||||
{
|
{
|
||||||
|
@ -432,7 +433,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
this.Text = Application.ProductName + " - DEVBUILD";
|
this.Text = Application.ProductName + " - DEVBUILD";
|
||||||
#else
|
#else
|
||||||
this.Text = Application.ProductName + " v" + General.ThisAssembly.GetName().Version.Major + "." + General.ThisAssembly.GetName().Version.Minor;
|
this.Text = programname;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue