Include version in user-agent

This commit is contained in:
Jaex 2018-11-06 02:40:05 +03:00
parent b1fed1c1c0
commit 4f74e7fad3

View file

@ -24,13 +24,22 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib.Properties;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ShareX.HelpersLib
{
public static class ShareXResources
{
public const string UserAgent = "ShareX";
public static string UserAgent
{
get
{
Version version = Version.Parse(Application.ProductVersion);
return $"ShareX/{version.Major}.{version.Minor}.{version.Build}";
}
}
public static Icon Icon => Resources.ShareX_Icon;