Only refresh history if settings are changed

This commit is contained in:
Jaex 2021-08-10 02:59:31 +03:00
parent 8459ece0c3
commit 0b487f24a4

View file

@ -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)