mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-16 02:13:39 +12:00
[BUG] Search reset sometimes not working (#303), version 1.2.2.9
This commit is contained in:
parent
27f2fed2f8
commit
101df84e73
|
@ -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")]
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue