mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Use canse insensitive search in language filter - thx rRobis :)
Fix #7479
This commit is contained in:
parent
158310e0a6
commit
a090311ce2
@ -100,9 +100,9 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
||||
listView1.Items.Clear();
|
||||
foreach (var x in _languageItems)
|
||||
{
|
||||
if (x.Name.Contains(textBoxSearch.Text) ||
|
||||
x.Code.TwoLetterISOLanguageName == textBoxSearch.Text ||
|
||||
x.Code.ThreeLetterISOLanguageName == textBoxSearch.Text)
|
||||
if (x.Name.Contains(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase) ||
|
||||
x.Code.TwoLetterISOLanguageName.Equals(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase) ||
|
||||
x.Code.ThreeLetterISOLanguageName.Equals(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var listViewItem = new ListViewItem(x.ToString())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user