Skip to content

Commit

Permalink
Show nightly build in main window title
Browse files Browse the repository at this point in the history
  • Loading branch information
borzel committed Jan 1, 2024
1 parent a49162d commit a2b0d7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
[assembly: AssemblyCopyright("Copyright © XCP-ng")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("99.99.99")]
[assembly: AssemblyFileVersion("99.99.99.9999")]
[assembly: AssemblyVersion("99.99.99.29")]
[assembly: AssemblyFileVersion("99.99.99.29")]

/*
* .NET Framework 4.8 docs: All components of the version must be integers greater
Expand Down
6 changes: 6 additions & 0 deletions XenAdmin/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ protected override void OnLoad(EventArgs e)
History.EnableHistoryButtons();
History.NewHistoryItem(new XenModelObjectHistoryItem(null, TabPageHome));
Text = BrandManager.BrandConsole;
if (Program.Version.Major == 99 &&
Program.Version.Minor == 99 &&
Program.Version.Build == 99)
{
Text += " NIGHTLY BUILD Nr. " + Program.Version.Revision.ToString();
}

/*
* Resume window size and location
Expand Down

0 comments on commit a2b0d7f

Please sign in to comment.