From 8a6101d329ee26aa7bec8de04f6653d6846c015f Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Thu, 21 Oct 2021 21:28:58 +0200 Subject: [PATCH] [BUG] loading icons not updated after search and revert search (#221), version 1.0.22.2 --- Properties/AssemblyInfo.cs | 4 ++-- UserInterface/Menu.cs | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index e6dd7f2..f3c9616 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")] diff --git a/UserInterface/Menu.cs b/UserInterface/Menu.cs index af43fbe..12a1af8 100644 --- a/UserInterface/Menu.cs +++ b/UserInterface/Menu.cs @@ -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)