mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Fixed tag check issue
This commit is contained in:
parent
24be3fa7c4
commit
61c44bc0bd
|
@ -46,9 +46,31 @@ public class HistoryItem
|
||||||
public Dictionary<string, string> Tags { get; set; }
|
public Dictionary<string, string> Tags { get; set; }
|
||||||
|
|
||||||
[JsonIgnore, DisplayName("Tags[WindowTitle]")]
|
[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]")]
|
[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