mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
[PowerLauncher] Enable analyzer and fix warnings (#16900)
This commit is contained in:
committed by
GitHub
parent
eb961ee052
commit
46684966a1
@@ -80,6 +80,7 @@ namespace PowerLauncher
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1309:Use ordinal string comparison", Justification = "Using StringComparison.InvariantCulture since this is user facing")]
|
||||
private void ToolTip_Opened(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (string.Equals(sender.GetType().FullName, "System.Windows.Controls.ToolTip", System.StringComparison.InvariantCulture))
|
||||
@@ -89,6 +90,7 @@ namespace PowerLauncher
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1309:Use ordinal string comparison", Justification = "Using StringComparison.InvariantCulture since this is user facing")]
|
||||
private void SuggestionsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (string.Equals(((ListView)e.OriginalSource).Name, "SuggestionsList", System.StringComparison.InvariantCulture))
|
||||
|
||||
Reference in New Issue
Block a user