Unlinked the MaxResults value from settings and set to fixed value of 30 (#5742)

This commit is contained in:
Arjun Balgovind 2020-08-06 16:44:13 -07:00 committed by GitHub
parent b04bb2ef8d
commit b95a1fb604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,7 @@ namespace Microsoft.Plugin.Indexer
{
public List<ContextMenu> ContextMenus { get; } = new List<ContextMenu>();
public int MaxSearchCount { get; set; } = 100;
public int MaxSearchCount { get; set; } = 30;
public bool UseLocationAsWorkingDir { get; set; } = false;
}

View file

@ -63,7 +63,7 @@ namespace Microsoft.Plugin.Indexer
var searchQuery = query.Search;
if (_settings.MaxSearchCount <= 0)
{
_settings.MaxSearchCount = 50;
_settings.MaxSearchCount = 30;
}
var regexMatch = Regex.Match(searchQuery, reservedStringPattern);
@ -211,7 +211,6 @@ namespace Microsoft.Plugin.Indexer
public void UpdateSettings(PowerLauncherSettings settings)
{
_settings.MaxSearchCount = settings.Properties.MaximumNumberOfResults;
_driveDetection.IsDriveDetectionWarningCheckBoxSelected = settings.Properties.DisableDriveDetectionWarning;
}