Fixed tag check issue

This commit is contained in:
Jaex 2021-08-11 05:31:31 +03:00
parent 24be3fa7c4
commit 61c44bc0bd

View file

@ -46,9 +46,31 @@ public class HistoryItem
public Dictionary<string, string> Tags { get; set; }
[JsonIgnore, DisplayName("Tags[WindowTitle]")]
public string TagsWindowTitle => Tags?["WindowTitle"];
public string TagsWindowTitle
{
get
{
if (Tags != null && Tags.TryGetValue("WindowTitle", out string value))
{
return value;
}
return null;
}
}
[JsonIgnore, DisplayName("Tags[ProcessName]")]
public string TagsProcessName => Tags?["ProcessName"];
public string TagsProcessName
{
get
{
if (Tags != null && Tags.TryGetValue("ProcessName", out string value))
{
return value;
}
return null;
}
}
}
}