Conf editor crash fixed

This commit is contained in:
stax76
2023-12-15 08:35:01 +01:00
parent e0616dee76
commit b23542d681
7 changed files with 231 additions and 136 deletions

View File

@@ -39,7 +39,7 @@ public partial class SearchControl : UserControl
{
HintTextBlock.Text = string.IsNullOrEmpty(Text) ? HintText : "";
if (string.IsNullOrEmpty(Text) || HideClearButton)
if (string.IsNullOrEmpty(Text) || HideClearButton || Text.Length > 21)
SearchClearButton.Visibility = Visibility.Hidden;
else
SearchClearButton.Visibility = Visibility.Visible;