mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Fixed tag check issue
This commit is contained in:
parent
24be3fa7c4
commit
61c44bc0bd
1 changed files with 24 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue