[GUI] Some fixes for asset list filtering

This commit is contained in:
VaDiM 2023-05-29 02:15:29 +03:00
parent 09947fd14f
commit f0c237473c
2 changed files with 5 additions and 3 deletions

View File

@ -723,7 +723,9 @@
this.listSearchHistory.Size = new System.Drawing.Size(351, 21);
this.listSearchHistory.TabIndex = 2;
this.listSearchHistory.TabStop = false;
this.listSearchHistory.TextChanged += new System.EventHandler(this.listSearchHistory_TextChanged);
this.listSearchHistory.SelectedIndexChanged += new System.EventHandler(this.listSearchHistory_SelectedIndexChanged);
this.listSearchHistory.Enter += new System.EventHandler(this.listSearch_Enter);
this.listSearchHistory.Leave += new System.EventHandler(this.listSearch_Leave);
//
// listSearchFilterMode
//

View File

@ -657,7 +657,7 @@ namespace AssetStudioGUI
{
BeginInvoke(new Action(() =>
{
if (listSearch.Text != "")
if (listSearch.Text != "" && listSearch.Text != " Filter ")
{
if (listSearchHistory.Items.Count == listSearchHistory.MaxDropDownItems)
{
@ -1867,7 +1867,7 @@ namespace AssetStudioGUI
}
}
private void listSearchHistory_TextChanged(object sender, EventArgs e)
private void listSearchHistory_SelectedIndexChanged(object sender, EventArgs e)
{
listSearch.Text = listSearchHistory.Text;
listSearch.Focus();