mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fixing stylecop violations (#5629)
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
namespace Microsoft.Plugin.Indexer.DriveDetection
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
namespace Microsoft.Plugin.Indexer.DriveDetection
|
||||
{
|
||||
public class IndexerDriveDetection
|
||||
{
|
||||
private bool IsEnhancedModeEnabled { get; set; } = false;
|
||||
private IRegistryWrapper _registryHelper;
|
||||
|
||||
private readonly IRegistryWrapper _registryHelper;
|
||||
|
||||
public bool IsDriveDetectionWarningCheckBoxSelected { get; set; } = false;
|
||||
|
||||
public IndexerDriveDetection(IRegistryWrapper registryHelper)
|
||||
@@ -18,7 +24,7 @@
|
||||
return !(IsDriveDetectionWarningCheckBoxSelected || IsEnhancedModeEnabled);
|
||||
}
|
||||
|
||||
// To look up the registry entry for
|
||||
// To look up the registry entry for enhanced search
|
||||
private void GetEnhancedModeStatus()
|
||||
{
|
||||
string registryLocation = @"Software\Microsoft\Windows Search\Gather\Windows\SystemIndex";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Windows.Input;
|
||||
using Microsoft.Plugin.Indexer;
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Microsoft.Plugin.Indexer.DriveDetection
|
||||
@@ -16,13 +16,14 @@ namespace Microsoft.Plugin.Indexer.DriveDetection
|
||||
{
|
||||
if (regKey != null)
|
||||
{
|
||||
Object value = regKey.GetValue(valueName);
|
||||
object value = regKey.GetValue(valueName);
|
||||
if (value != null)
|
||||
{
|
||||
return (int)value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user