mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 15:21:37 +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
2 changed files with 13 additions and 2 deletions
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.22.1")]
|
[assembly: AssemblyVersion("1.0.22.2")]
|
||||||
[assembly: AssemblyFileVersion("1.0.22.1")]
|
[assembly: AssemblyFileVersion("1.0.22.2")]
|
||||||
|
|
|
@ -701,6 +701,7 @@ namespace SystemTrayMenu.UserInterface
|
||||||
|
|
||||||
int foldersCount = 0;
|
int foldersCount = 0;
|
||||||
int filesCount = 0;
|
int filesCount = 0;
|
||||||
|
bool anyIconNotUpdated = false;
|
||||||
|
|
||||||
foreach (DataGridViewRow row in dgv.Rows)
|
foreach (DataGridViewRow row in dgv.Rows)
|
||||||
{
|
{
|
||||||
|
@ -715,11 +716,21 @@ namespace SystemTrayMenu.UserInterface
|
||||||
{
|
{
|
||||||
filesCount++;
|
filesCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rowData.IconLoading)
|
||||||
|
{
|
||||||
|
anyIconNotUpdated = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SetCounts(foldersCount, filesCount);
|
SetCounts(foldersCount, filesCount);
|
||||||
|
|
||||||
SearchTextChanged.Invoke(this, null);
|
SearchTextChanged.Invoke(this, null);
|
||||||
|
|
||||||
|
if (anyIconNotUpdated)
|
||||||
|
{
|
||||||
|
timerUpdateIcons.Start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PictureBox_MouseEnter(object sender, EventArgs e)
|
private void PictureBox_MouseEnter(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue