mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-29 03:30:43 +12:00
Allow toggling history item info
This commit is contained in:
parent
723535a7ec
commit
c5ef30e910
|
@ -285,10 +285,7 @@ private void UpdateControls()
|
|||
UpdatePictureBox();
|
||||
}
|
||||
|
||||
if (!scHistoryItemInfo.Panel2Collapsed)
|
||||
{
|
||||
pgHistoryItemInfo.SelectedObject = historyItem;
|
||||
}
|
||||
pgHistoryItemInfo.SelectedObject = historyItem;
|
||||
}
|
||||
|
||||
private void UpdatePictureBox()
|
||||
|
@ -357,6 +354,11 @@ private string OutputStats(HistoryItem[] historyItems)
|
|||
return sb.ToString();
|
||||
}
|
||||
|
||||
private void ShowMoreInfo(HistoryItem historyItem)
|
||||
{
|
||||
scHistoryItemInfo.Panel2Collapsed = !scHistoryItemInfo.Panel2Collapsed;
|
||||
}
|
||||
|
||||
#region Form events
|
||||
|
||||
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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue