feat: display CalVer version in main window only

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
erik 2026-02-28 13:26:21 +00:00
parent c702263770
commit 725bbf473f
4 changed files with 9 additions and 3 deletions

View file

@ -26,5 +26,11 @@ namespace MosswartMassacre
// Int64 property keys // Int64 property keys
internal const int AvailableLuminanceKey = 6; internal const int AvailableLuminanceKey = 6;
internal const int MaximumLuminanceKey = 7; internal const int MaximumLuminanceKey = 7;
/// <summary>
/// Plugin version derived from assembly version (CalVer: YYYY.M.D.HHmm)
/// </summary>
public static string PluginVersion =>
typeof(Constants).Assembly.GetName().Version.ToString();
} }
} }

View file

@ -177,7 +177,7 @@ namespace MosswartMassacre.Views
{ {
view.Visible = true; view.Visible = true;
view.ShowInBar = true; view.ShowInBar = true;
view.Title = "Mossy Tracker v5.0.0.0"; view.Title = "Mossy Tracker";
} }
RefreshAllData(); RefreshAllData();

View file

@ -59,7 +59,7 @@ namespace MosswartMassacre.Views
// Set window properties // Set window properties
if (doTitle) if (doTitle)
{ {
properties.Title = "Mosswart Massacre v5.0.0.0"; properties.Title = $"Mosswart Massacre v{Constants.PluginVersion}";
} }
if (doIcon) if (doIcon)
@ -91,7 +91,7 @@ namespace MosswartMassacre.Views
if (doTitle) if (doTitle)
{ {
properties.Title = "Mosswart Massacre v5.0.0.0"; properties.Title = $"Mosswart Massacre v{Constants.PluginVersion}";
} }
if (doIcon) if (doIcon)