Skip to content

Commit

Permalink
* Fixed the FilesInSourceFolderListBox filter not being applied any t…
Browse files Browse the repository at this point in the history
…ime the list was updated, other than modifying the SearchTextBox's text.
  • Loading branch information
DrWhoCares committed Mar 14, 2021
1 parent 383e383 commit cc1386e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions imgdanke/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,11 @@ private void FilesListSearchTextBox_TextChanged(object sender, EventArgs e)

private void RemoveNonMatchingFilesInSourceFolderListBox()
{
if ( string.IsNullOrWhiteSpace(FilesListSearchTextBox.Text) )
{
return;
}

if ( FilesListSearchTextBox.Text.Contains('*') )
{
try
Expand Down Expand Up @@ -1418,6 +1423,7 @@ private void BuildFilesInSourceFolderList()
{
FilesInSourceFolderList = GetImageFilesList(SourceFolderPathTextBox.Text);
FilesInSourceFolderListDataSource = FilesInSourceFolderList;
RemoveNonMatchingFilesInSourceFolderListBox();
UpdateFilesInSourceFolderListDataSource();
}

Expand Down

0 comments on commit cc1386e

Please sign in to comment.