Unlinked the MaxResults value from settings and set to fixed value of 30 (#5742)
This commit is contained in:
parent
b04bb2ef8d
commit
b95a1fb604
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue