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