From 83e879961000fc8d883868c902bec308072b935e Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Fri, 21 Aug 2020 12:40:31 -0700 Subject: [PATCH] init checkin (#6100) --- src/common/ManagedCommon/ManagedCommon.csproj | 2 +- .../Microsoft.PowerToys.Settings.UI.UnitTests.csproj | 6 +++--- .../launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs | 2 +- .../Microsoft.Plugin.Calculator.csproj | 2 +- .../launcher/Plugins/Microsoft.Plugin.Folder/Main.cs | 2 +- .../Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj | 2 +- .../DriveDetection/IndexerDriveDetection.cs | 4 ++-- .../Plugins/Microsoft.Plugin.Indexer/IndexerSettings.cs | 2 +- .../Microsoft.Plugin.Indexer.csproj | 2 +- .../Microsoft.Plugin.Program.UnitTests.csproj | 2 +- .../launcher/Plugins/Microsoft.Plugin.Program/Main.cs | 4 ++-- .../Microsoft.Plugin.Program.csproj | 2 +- .../Microsoft.Plugin.Program/Programs/PackageWrapper.cs | 4 ++-- .../Microsoft.Plugin.Program/Programs/ShellLinkHelper.cs | 2 +- .../Microsoft.Plugin.Program/Programs/Win32Program.cs | 2 +- .../Storage/Win32ProgramFileSystemWatchers.cs | 2 +- .../Microsoft.Plugin.Uri.UnitTests.csproj | 2 +- .../Microsoft.Plugin.Uri/Microsoft.Plugin.Uri.csproj | 2 +- src/modules/launcher/PowerLauncher/App.xaml.cs | 2 +- src/modules/launcher/PowerLauncher/MainWindow.xaml.cs | 6 +++--- src/modules/launcher/PowerLauncher/PowerLauncher.csproj | 2 +- src/modules/launcher/PowerLauncher/PublicAPIInstance.cs | 2 +- src/modules/launcher/Wox.Test/Wox.Test.csproj | 2 +- 23 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/common/ManagedCommon/ManagedCommon.csproj b/src/common/ManagedCommon/ManagedCommon.csproj index 90f494d198..83111e2a18 100644 --- a/src/common/ManagedCommon/ManagedCommon.csproj +++ b/src/common/ManagedCommon/ManagedCommon.csproj @@ -26,7 +26,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/core/Microsoft.PowerToys.Settings.UI.UnitTests/Microsoft.PowerToys.Settings.UI.UnitTests.csproj b/src/core/Microsoft.PowerToys.Settings.UI.UnitTests/Microsoft.PowerToys.Settings.UI.UnitTests.csproj index ec0c974fc6..995829a5f2 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI.UnitTests/Microsoft.PowerToys.Settings.UI.UnitTests.csproj +++ b/src/core/Microsoft.PowerToys.Settings.UI.UnitTests/Microsoft.PowerToys.Settings.UI.UnitTests.csproj @@ -16,9 +16,9 @@ - - - + + + diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs index 5ed9bb9b67..ab69ee5dcc 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs @@ -34,7 +34,7 @@ namespace Microsoft.Plugin.Calculator private string IconPath { get; set; } - private bool _disposed = false; + private bool _disposed; public List Query(Query query) { diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj index 9065cd2cdc..22fb395ee7 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj @@ -103,7 +103,7 @@ NU1701 - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs index d5ab914094..69377fee37 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs @@ -32,7 +32,7 @@ namespace Microsoft.Plugin.Folder private static PluginInitContext _context; private IContextMenu _contextMenuLoader; private static string warningIconPath; - private bool _disposed = false; + private bool _disposed; public void Save() { diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj index df7637750b..e46850e0bf 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj @@ -97,7 +97,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/DriveDetection/IndexerDriveDetection.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/DriveDetection/IndexerDriveDetection.cs index 28a7eadc29..9bf2eed7b5 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/DriveDetection/IndexerDriveDetection.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/DriveDetection/IndexerDriveDetection.cs @@ -6,11 +6,11 @@ namespace Microsoft.Plugin.Indexer.DriveDetection { public class IndexerDriveDetection { - private bool IsEnhancedModeEnabled { get; set; } = false; + private bool IsEnhancedModeEnabled { get; set; } private readonly IRegistryWrapper _registryHelper; - public bool IsDriveDetectionWarningCheckBoxSelected { get; set; } = false; + public bool IsDriveDetectionWarningCheckBoxSelected { get; set; } public IndexerDriveDetection(IRegistryWrapper registryHelper) { diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/IndexerSettings.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/IndexerSettings.cs index 307a91abe4..4d31c4146e 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/IndexerSettings.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/IndexerSettings.cs @@ -12,6 +12,6 @@ namespace Microsoft.Plugin.Indexer public int MaxSearchCount { get; set; } = 30; - public bool UseLocationAsWorkingDir { get; set; } = false; + public bool UseLocationAsWorkingDir { get; set; } } } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj index aaf7aac074..472ab5ae2c 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj @@ -41,7 +41,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program.UnitTests/Microsoft.Plugin.Program.UnitTests.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Program.UnitTests/Microsoft.Plugin.Program.UnitTests.csproj index 54640a1686..ddc060a00d 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program.UnitTests/Microsoft.Plugin.Program.UnitTests.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program.UnitTests/Microsoft.Plugin.Program.UnitTests.csproj @@ -28,7 +28,7 @@ - + diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs index 14c5e93bf2..4d515a608c 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs @@ -25,7 +25,7 @@ namespace Microsoft.Plugin.Program private static PluginInitContext _context; private readonly PluginJsonStorage _settingsStorage; - private bool _disposed = false; + private bool _disposed; private PackageRepository _packageRepository = new PackageRepository(new PackageCatalogWrapper(), new BinaryStorage>("UWP")); private static Win32ProgramFileSystemWatchers _win32ProgramRepositoryHelper; private static Win32ProgramRepository _win32ProgramRepository; @@ -173,7 +173,7 @@ namespace Microsoft.Plugin.Program catch (Exception) { var name = "Plugin: Program"; - var message = $"Unable to start: {info.FileName}"; + var message = $"Unable to start: {info?.FileName}"; _context.API.ShowMsg(name, message, string.Empty); } } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Microsoft.Plugin.Program.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Microsoft.Plugin.Program.csproj index 86b89d99d4..7359a50a08 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Microsoft.Plugin.Program.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Microsoft.Plugin.Program.csproj @@ -91,7 +91,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/PackageWrapper.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/PackageWrapper.cs index 0e6a5b180a..0f45c5abf6 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/PackageWrapper.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/PackageWrapper.cs @@ -17,9 +17,9 @@ namespace Microsoft.Plugin.Program.Programs public string FamilyName { get; } = string.Empty; - public bool IsFramework { get; } = false; + public bool IsFramework { get; } - public bool IsDevelopmentMode { get; } = false; + public bool IsDevelopmentMode { get; } public string InstalledLocation { get; } = string.Empty; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/ShellLinkHelper.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/ShellLinkHelper.cs index b07068f100..5c7f37b644 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/ShellLinkHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/ShellLinkHelper.cs @@ -128,7 +128,7 @@ namespace Microsoft.Plugin.Program.Programs // Contains the arguments to the app public string Arguments { get; set; } = string.Empty; - public bool HasArguments { get; set; } = false; + public bool HasArguments { get; set; } // Retrieve the target path using Shell Link public string RetrieveTargetPath(string path) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs index b441c4537d..8e628c398d 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs @@ -46,7 +46,7 @@ namespace Microsoft.Plugin.Program.Programs public bool Enabled { get; set; } - public bool HasArguments { get; set; } = false; + public bool HasArguments { get; set; } public string Arguments { get; set; } = string.Empty; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Storage/Win32ProgramFileSystemWatchers.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Storage/Win32ProgramFileSystemWatchers.cs index 559537f632..e1a256b570 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Storage/Win32ProgramFileSystemWatchers.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Storage/Win32ProgramFileSystemWatchers.cs @@ -14,7 +14,7 @@ namespace Microsoft.Plugin.Program.Storage public List FileSystemWatchers { get; set; } - private bool _disposed = false; + private bool _disposed; // This class contains the list of directories to watch and initializes the File System Watchers public Win32ProgramFileSystemWatchers() diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Uri.UnitTests/Microsoft.Plugin.Uri.UnitTests.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Uri.UnitTests/Microsoft.Plugin.Uri.UnitTests.csproj index b5651cfe84..372b57c5f1 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Uri.UnitTests/Microsoft.Plugin.Uri.UnitTests.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Uri.UnitTests/Microsoft.Plugin.Uri.UnitTests.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Uri/Microsoft.Plugin.Uri.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Uri/Microsoft.Plugin.Uri.csproj index e0e32a8310..12c9e475e5 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Uri/Microsoft.Plugin.Uri.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Uri/Microsoft.Plugin.Uri.csproj @@ -111,7 +111,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index b53d9f148c..24b893091b 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -30,7 +30,7 @@ namespace PowerLauncher private readonly Alphabet _alphabet = new Alphabet(); private const string Unique = "PowerLauncher_Unique_Application_Mutex"; - private static bool _disposed = false; + private static bool _disposed; private static int _powerToysPid; private Settings _settings; private MainViewModel _mainVM; diff --git a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs index efd45da458..8770174fcd 100644 --- a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs +++ b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs @@ -23,9 +23,9 @@ namespace PowerLauncher private readonly Settings _settings; private readonly MainViewModel _viewModel; private bool _isTextSetProgrammatically; - private bool _deletePressed = false; + private bool _deletePressed; private Timer _firstDeleteTimer = new Timer(); - private bool _coldStateHotkeyPressed = false; + private bool _coldStateHotkeyPressed; public MainWindow(Settings settings, MainViewModel mainVM) : this() @@ -314,7 +314,7 @@ namespace PowerLauncher } } - private bool disposedValue = false; + private bool disposedValue; private void QueryTextBox_TextChanged(object sender, TextChangedEventArgs e) { diff --git a/src/modules/launcher/PowerLauncher/PowerLauncher.csproj b/src/modules/launcher/PowerLauncher/PowerLauncher.csproj index 63b774ffd0..be8367d2dc 100644 --- a/src/modules/launcher/PowerLauncher/PowerLauncher.csproj +++ b/src/modules/launcher/PowerLauncher/PowerLauncher.csproj @@ -96,7 +96,7 @@ NU1701 - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs b/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs index da5c4d9fb3..354e0b2946 100644 --- a/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs +++ b/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs @@ -23,7 +23,7 @@ namespace Wox private readonly MainViewModel _mainVM; private readonly Alphabet _alphabet; private readonly ThemeManager _themeManager; - private bool _disposed = false; + private bool _disposed; public event ThemeChangedHandler ThemeChanged; diff --git a/src/modules/launcher/Wox.Test/Wox.Test.csproj b/src/modules/launcher/Wox.Test/Wox.Test.csproj index 1403607efc..5a3cf23485 100644 --- a/src/modules/launcher/Wox.Test/Wox.Test.csproj +++ b/src/modules/launcher/Wox.Test/Wox.Test.csproj @@ -63,7 +63,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - +