[BUG] loading icons not updated after search and revert search (#221), version 1.0.22.2

This commit is contained in:
Markus Hofknecht 2021-10-21 21:28:58 +02:00
parent 8cff4365fc
commit 8a6101d329
2 changed files with 13 additions and 2 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.22.1")]
[assembly: AssemblyFileVersion("1.0.22.1")]
[assembly: AssemblyVersion("1.0.22.2")]
[assembly: AssemblyFileVersion("1.0.22.2")]

View file

@ -701,6 +701,7 @@ namespace SystemTrayMenu.UserInterface
int foldersCount = 0;
int filesCount = 0;
bool anyIconNotUpdated = false;
foreach (DataGridViewRow row in dgv.Rows)
{
@ -715,11 +716,21 @@ namespace SystemTrayMenu.UserInterface
{
filesCount++;
}
if (rowData.IconLoading)
{
anyIconNotUpdated = true;
}
}
SetCounts(foldersCount, filesCount);
SearchTextChanged.Invoke(this, null);
if (anyIconNotUpdated)
{
timerUpdateIcons.Start();
}
}
private void PictureBox_MouseEnter(object sender, EventArgs e)