mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Include version in user-agent
This commit is contained in:
parent
b1fed1c1c0
commit
4f74e7fad3
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue