mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user