summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-06-23 20:33:44 +0100
committersr55 <[email protected]>2017-06-23 20:34:00 +0100
commit2128977388d9003a8bb191b2c0c481d5e5083601 (patch)
tree1352e72aa137c034d1a70522e212abede05c0a28 /win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
parentbe794bdcaa7c899a7b42251bc1ad34fbbdb8b992 (diff)
WinGui: Add a user agent for the HttpRequest on the update checker so we can identify the WinGui version that's checking for updates.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
index 209e3ddc8..40aca7d3e 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
@@ -33,6 +33,12 @@ namespace HandBrake.ApplicationServices.Utilities
return IsNightly() ? string.Format("Nightly {0} ({1})", instance.Version, instance.Build) : string.Format("{0} ({1})", instance.Version, instance.Build);
}
+ public static string GetVersionShort()
+ {
+ IHandBrakeInstance instance = HandBrakeInstanceManager.GetScanInstance(1);
+ return string.Format("{0} {1}", instance.Version, instance.Build);
+ }
+
/// <summary>
/// The is nightly.
/// </summary>