mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-25 01:30:52 +12:00
Only refresh history if settings are changed
This commit is contained in:
parent
8459ece0c3
commit
0b487f24a4
|
@ -445,12 +445,17 @@ private void tsbCopyStats_Click(object sender, EventArgs e)
|
|||
|
||||
private void tsbSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
int maxItemCount = Settings.MaxItemCount;
|
||||
|
||||
using (HistorySettingsForm form = new HistorySettingsForm(Settings))
|
||||
{
|
||||
form.ShowDialog();
|
||||
}
|
||||
|
||||
RefreshHistoryItems();
|
||||
if (maxItemCount != Settings.MaxItemCount)
|
||||
{
|
||||
RefreshHistoryItems();
|
||||
}
|
||||
}
|
||||
|
||||
private void txtFilenameFilter_KeyDown(object sender, KeyEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue