mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Enabling FxCop on tests (#6481)
This commit is contained in:
@@ -41,8 +41,7 @@ namespace ColorPickerUI
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
// allow only one instance of color picker
|
||||
bool createdNew;
|
||||
_instanceMutex = new Mutex(true, @"Global\ColorPicker", out createdNew);
|
||||
_instanceMutex = new Mutex(true, @"Global\ColorPicker", out bool createdNew);
|
||||
if (!createdNew)
|
||||
{
|
||||
_instanceMutex = null;
|
||||
|
||||
@@ -18,9 +18,11 @@ namespace ColorPicker.Settings
|
||||
private const string ColorPickerModuleName = "ColorPicker";
|
||||
private const string DefaultActivationShortcut = "Ctrl + Break";
|
||||
private const int MaxNumberOfRetry = 5;
|
||||
private FileSystemWatcher _watcher;
|
||||
|
||||
private object _loadingSettingsLock = new object();
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("CodeQuality", "IDE0052:Remove unread private members", Justification = "Actually, call back is LoadSettingsFromJson")]
|
||||
private readonly FileSystemWatcher _watcher;
|
||||
|
||||
private readonly object _loadingSettingsLock = new object();
|
||||
|
||||
[ImportingConstructor]
|
||||
public UserSettings()
|
||||
|
||||
Reference in New Issue
Block a user