mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
If value is empty then don't add it
This commit is contained in:
parent
a74b669780
commit
15058b1be9
|
@ -87,11 +87,14 @@ private void UpdateWindowInfo()
|
|||
|
||||
private void AddInfo(string name, string value)
|
||||
{
|
||||
rtbInfo.SetFontBold();
|
||||
rtbInfo.AppendLine(name);
|
||||
rtbInfo.SetFontRegular();
|
||||
rtbInfo.AppendLine(value);
|
||||
rtbInfo.AppendLine();
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
{
|
||||
rtbInfo.SetFontBold();
|
||||
rtbInfo.AppendLine(name);
|
||||
rtbInfo.SetFontRegular();
|
||||
rtbInfo.AppendLine(value);
|
||||
rtbInfo.AppendLine();
|
||||
}
|
||||
}
|
||||
|
||||
private void btnInspectWindow_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue