[BUG] Search reset sometimes not working (#303), version 1.2.2.9

This commit is contained in:
Markus Hofknecht 2022-01-30 13:51:23 +01:00
parent 27f2fed2f8
commit 101df84e73
2 changed files with 14 additions and 20 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.2.2.8")]
[assembly: AssemblyFileVersion("1.2.2.8")]
[assembly: AssemblyVersion("1.2.2.9")]
[assembly: AssemblyFileVersion("1.2.2.9")]

View file

@ -808,28 +808,22 @@ namespace SystemTrayMenu.UserInterface
if (string.IsNullOrEmpty(searchString))
{
if (Properties.Settings.Default.ShowOnlyAsSearchResult)
foreach (DataRow row in data.Rows)
{
foreach (DataRow row in data.Rows)
RowData rowData = (RowData)row[2];
if (Properties.Settings.Default.ShowOnlyAsSearchResult &&
rowData.ShowOnlyWhenSearch)
{
RowData rowData = (RowData)row[2];
if (rowData.ShowOnlyWhenSearch)
{
row[columnSortIndex] = 99;
}
else
{
row[columnSortIndex] = 0;
}
row[columnSortIndex] = 99;
}
else
{
row[columnSortIndex] = 0;
}
}
data.DefaultView.Sort = string.Empty;
data.AcceptChanges();
}
else
{
data.DefaultView.Sort = string.Empty;
}
data.DefaultView.Sort = string.Empty;
data.AcceptChanges();
}
else
{