Skip to content

Commit

Permalink
remeber last filtering (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Sep 17, 2023
1 parent c3afaea commit 602754d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Analogy.CommonControls/UserControls/LogMessagesUC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ private void SetupEventsHandlers()
#endregion
ceFilterPanelFilter.CheckStateChanged += rgSearchMode_SelectedIndexChanged;
ceFilterPanelSearch.CheckStateChanged += rgSearchMode_SelectedIndexChanged;
clbInclude.ItemCheck += async (_, __) => await FilterHasChanged();
clbExclude.ItemCheck += async (_, __) => await FilterHasChanged();
clbInclude.ItemCheck += async (_, _) => await FilterHasChanged();
clbExclude.ItemCheck += async (_, _) => await FilterHasChanged();
deNewerThanFilter.EditValueChanged += async (s, e) =>
{
ceNewerThanFilter.Checked = true;
Expand Down Expand Up @@ -974,19 +974,20 @@ private void SetupEventsHandlers()
ceSources.Click += async (s, e) => await FilterHasChanged();
ceIncludeText.CheckedChanged += async (s, e) =>
{
Settings.IncludeText = ceIncludeText.Checked ? txtbInclude.Text : "";
if (!ceIncludeText.Checked && !ceExcludeText.Checked)
{
// LogGrid.ClearColumnsFilter();
gridColumnText.FilterInfo = null;
}

await FilterHasChanged();
};
ceExcludeText.CheckedChanged += async (s, e) =>
{
Settings.ExcludeText = ceExcludeText.Checked ? txtbExclude.Text : "";

if (!ceIncludeText.Checked && !ceExcludeText.Checked)
{
//LogGrid.ClearColumnsFilter();
gridColumnText.FilterInfo = null;
}

Expand Down

0 comments on commit 602754d

Please sign in to comment.