Skip to content

Commit

Permalink
Added search cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
MscrmTools committed Sep 5, 2023
1 parent 8b0eb9b commit 6d61f15
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 53 deletions.
7 changes: 7 additions & 0 deletions XrmToolBox/New/PluginsForm2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,11 @@ private void Menu_OnSelectedChanged(object sender, System.EventArgs e)
ReloadPluginsList();
}

private void pbClearSearch_Click(object sender, System.EventArgs e)
{
txtSearch.Text = string.Empty;
}

private void pbOpenPluginsStore_Click(object sender, System.EventArgs e)
{
ActionRequested?.Invoke(this, new PluginsListEventArgs(PluginsListAction.OpenPluginsStore));
Expand Down Expand Up @@ -989,6 +994,8 @@ private void txtSearch_TextChanged(object sender, System.EventArgs e)
searchThread?.Abort();
searchThread = new Thread(DisplayPlugins);
searchThread.Start(filterText);

pbClearSearch.Visible = filterText.Length > 0;
}

private async Task WaitFileIsCopied()
Expand Down
Loading

0 comments on commit 6d61f15

Please sign in to comment.