summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
diff options
context:
space:
mode:
authorScott <[email protected]>2015-08-29 14:51:45 +0100
committerScott <[email protected]>2015-08-29 14:51:45 +0100
commit32f442e8da91b8766333abc9ba6b69946701d8db (patch)
tree74094a9b0c32d30b2e3292c4084e8aae95fff31b /win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
parent4fb5fbdced7faceaf4b24bd1b1f08cc127200ed8 (diff)
WinGui: Update the GUI to handle the version information correctly after the git move.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
index b1a90d3e0..47673c112 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
@@ -12,6 +12,9 @@ namespace HandBrake.ApplicationServices.Utilities
using System;
using System.Reflection;
+ using HandBrake.ApplicationServices.Interop;
+ using HandBrake.ApplicationServices.Interop.Interfaces;
+
/// <summary>
/// Version Utility
/// </summary>
@@ -26,7 +29,10 @@ namespace HandBrake.ApplicationServices.Utilities
public static string GetVersion()
{
Version version = Assembly.GetEntryAssembly().GetName().Version;
- return IsNightly() ? string.Format("svn{0} (Nightly Build)", version.Revision) : string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
+
+ IHandBrakeInstance instance = HandBrakeInstanceManager.GetScanInstance(1);
+
+ return IsNightly() ? string.Format("Nightly {0} ({1})", instance.Version, instance.Build) : string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}
/// <summary>