Improve tag visibility in history item info form

This commit is contained in:
Jaex 2021-08-04 01:24:43 +03:00
parent ffc0712276
commit 0894440771

View file

@ -23,8 +23,10 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace ShareX.HistoryLib
{
@ -39,6 +41,14 @@ public class HistoryItem
public string ThumbnailURL { get; set; }
public string DeletionURL { get; set; }
public string ShortenedURL { get; set; }
[Browsable(false)]
public Dictionary<string, string> Tags { get; set; }
[JsonIgnore, DisplayName("Tags[WindowTitle]")]
public string TagsWindowTitle => Tags?["WindowTitle"];
[JsonIgnore, DisplayName("Tags[ProcessName]")]
public string TagsProcessName => Tags?["ProcessName"];
}
}