mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-20 19:30:31 +12:00
[BUG] loading icons not updated after search and revert search (#221), version 1.0.22.2
This commit is contained in:
parent
8cff4365fc
commit
8a6101d329
|
@ -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")]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue