mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Allow toggling history item info
This commit is contained in:
parent
723535a7ec
commit
c5ef30e910
1 changed files with 6 additions and 10 deletions
|
@ -285,10 +285,7 @@ private void UpdateControls()
|
||||||
UpdatePictureBox();
|
UpdatePictureBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!scHistoryItemInfo.Panel2Collapsed)
|
pgHistoryItemInfo.SelectedObject = historyItem;
|
||||||
{
|
|
||||||
pgHistoryItemInfo.SelectedObject = historyItem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdatePictureBox()
|
private void UpdatePictureBox()
|
||||||
|
@ -357,6 +354,11 @@ private string OutputStats(HistoryItem[] historyItems)
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ShowMoreInfo(HistoryItem historyItem)
|
||||||
|
{
|
||||||
|
scHistoryItemInfo.Panel2Collapsed = !scHistoryItemInfo.Panel2Collapsed;
|
||||||
|
}
|
||||||
|
|
||||||
#region Form events
|
#region Form events
|
||||||
|
|
||||||
private void HistoryForm_Shown(object sender, EventArgs e)
|
private void HistoryForm_Shown(object sender, EventArgs e)
|
||||||
|
@ -532,12 +534,6 @@ private void lvHistory_ItemDrag(object sender, ItemDragEventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowMoreInfo(HistoryItem historyItem)
|
|
||||||
{
|
|
||||||
pgHistoryItemInfo.SelectedObject = historyItem;
|
|
||||||
scHistoryItemInfo.Panel2Collapsed = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Form events
|
#endregion Form events
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue