mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Unlinked the MaxResults value from settings and set to fixed value of 30 (#5742)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user