mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-03 05:30:32 +12:00
Allow toggling history item info
This commit is contained in:
parent
723535a7ec
commit
c5ef30e910
|
@ -285,11 +285,8 @@ 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