mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 12:14:53 +08:00
Fix for:
Warning CA1820 Test for empty strings using 'string.Length' property or 'string.IsNullOrEmpty' method instead of an Equality check. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\MainWindow.xaml.cs 291 Active
This commit is contained in:
parent
2d890603c6
commit
6ea181c286
@ -299,7 +299,7 @@ namespace PowerLauncher
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var text = ((TextBox)sender).Text;
|
var text = ((TextBox)sender).Text;
|
||||||
if (text == string.Empty)
|
if (string.IsNullOrEmpty(text))
|
||||||
{
|
{
|
||||||
SearchBox.AutoCompleteTextBlock.Text = string.Empty;
|
SearchBox.AutoCompleteTextBlock.Text = string.Empty;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user