mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Build] Upgraded NetAnalyzers to 7.0.1 (#24792)
* upgraded NetAnalyzers to 7.0.1 * fix spellcheck * Microsoft.CodeAnalysis.NetAnalyzers 7.0.1 * rebase and fix
This commit is contained in:
committed by
GitHub
parent
5492b4ae62
commit
5cbe9dd911
@@ -9,7 +9,7 @@ using System.Windows.Controls;
|
||||
|
||||
namespace PowerLauncher
|
||||
{
|
||||
public class CustomSearchBox : TextBox
|
||||
public sealed class CustomSearchBox : TextBox
|
||||
{
|
||||
public List<UIElement> ControlledElements { get; } = new List<UIElement>();
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace PowerLauncher
|
||||
return new AutoSuggestTextBoxAutomationPeer(this);
|
||||
}
|
||||
|
||||
internal class AutoSuggestTextBoxAutomationPeer : TextBoxAutomationPeer
|
||||
internal sealed class AutoSuggestTextBoxAutomationPeer : TextBoxAutomationPeer
|
||||
{
|
||||
public AutoSuggestTextBoxAutomationPeer(CustomSearchBox owner)
|
||||
: base(owner)
|
||||
|
||||
@@ -7,7 +7,7 @@ using Wox.Plugin;
|
||||
|
||||
namespace PowerLauncher.Helper
|
||||
{
|
||||
internal class KeyboardHelper
|
||||
internal sealed class KeyboardHelper
|
||||
{
|
||||
public static SpecialKeyState CheckModifiers()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ using Wox.Plugin.Logger;
|
||||
|
||||
namespace PowerLauncher
|
||||
{
|
||||
internal partial class ReportWindow
|
||||
internal sealed partial class ReportWindow
|
||||
{
|
||||
private static readonly IFileSystem FileSystem = new FileSystem();
|
||||
private static readonly IFile File = FileSystem.File;
|
||||
|
||||
@@ -269,9 +269,9 @@ namespace PowerLauncher
|
||||
var defaultOptions = defaultAdditionalOptions.ToDictionary(x => x.Key);
|
||||
foreach (var option in additionalOptions)
|
||||
{
|
||||
if (option.Key != null && defaultOptions.ContainsKey(option.Key))
|
||||
if (option.Key != null && defaultOptions.TryGetValue(option.Key, out PluginAdditionalOption defaultOption))
|
||||
{
|
||||
defaultOptions[option.Key].Value = option.Value;
|
||||
defaultOption.Value = option.Value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user