mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +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();
|
listView1.Items.Clear();
|
||||||
foreach (var x in _languageItems)
|
foreach (var x in _languageItems)
|
||||||
{
|
{
|
||||||
if (x.Name.Contains(textBoxSearch.Text) ||
|
if (x.Name.Contains(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase) ||
|
||||||
x.Code.TwoLetterISOLanguageName == textBoxSearch.Text ||
|
x.Code.TwoLetterISOLanguageName.Equals(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase) ||
|
||||||
x.Code.ThreeLetterISOLanguageName == textBoxSearch.Text)
|
x.Code.ThreeLetterISOLanguageName.Equals(textBoxSearch.Text, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
var listViewItem = new ListViewItem(x.ToString())
|
var listViewItem = new ListViewItem(x.ToString())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user