Drive Detection Indexer warning refinement (#5221)

* show results always and conditionally show warning

* changed test logic to show warning when expected

* renamed unit test
This commit is contained in:
Alekhya
2020-07-24 17:45:07 -07:00
committed by GitHub
parent 563fb3ff5c
commit 025f2507f4
3 changed files with 83 additions and 85 deletions

View File

@@ -18,10 +18,10 @@ namespace Microsoft.Plugin.Indexer.DriveDetection
GetEnhancedModeStatus();
}
// To display the results if either enhanced mode is on or if the disable drive detection checkbox is checked
public bool DisplayResults()
// To display the warning when Enhanced mode is disabled and the Disable Drive detection check box in settings is unchecked
public bool DisplayWarning()
{
return IsDriveDetectionWarningCheckBoxSelected || IsEnhancedModeEnabled;
return !(IsDriveDetectionWarningCheckBoxSelected || IsEnhancedModeEnabled);
}
// To look up the registry entry for