mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PTRun]Settings for result order tuning (#18978)
* Change to allow new settings for results tuning. * Change to allow new settings for results tuning. * Added WeightBoost * Fixed null-ref crash in QueryResults * Change based on stefansjfw review. Remove PowerLauncher_PluginWeightBoost.Content * Fixed another of my dumb null-refs... * Updated some text * Moved global sort order and set enable/disabled as needed. * Fixed enabled-state of "Global sort order score modifier" setting.
This commit is contained in:
@@ -82,6 +82,12 @@ namespace Wox.Infrastructure.UserSettings
|
||||
|
||||
private int _searchInputDelay = 150;
|
||||
|
||||
private int _searchClickedItemWeight = 5;
|
||||
|
||||
private bool _searchQueryTuningEnabled;
|
||||
|
||||
private bool _searchWaitForSlowResults;
|
||||
|
||||
public int SearchInputDelay
|
||||
{
|
||||
get
|
||||
@@ -99,6 +105,57 @@ namespace Wox.Infrastructure.UserSettings
|
||||
}
|
||||
}
|
||||
|
||||
public bool SearchQueryTuningEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return _searchQueryTuningEnabled;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (_searchQueryTuningEnabled != value)
|
||||
{
|
||||
_searchQueryTuningEnabled = value;
|
||||
OnPropertyChanged(nameof(SearchQueryTuningEnabled));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool SearchWaitForSlowResults
|
||||
{
|
||||
get
|
||||
{
|
||||
return _searchWaitForSlowResults;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (_searchWaitForSlowResults != value)
|
||||
{
|
||||
_searchWaitForSlowResults = value;
|
||||
OnPropertyChanged(nameof(_searchWaitForSlowResults));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int SearchClickedItemWeight
|
||||
{
|
||||
get
|
||||
{
|
||||
return _searchClickedItemWeight;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (_searchClickedItemWeight != value)
|
||||
{
|
||||
_searchClickedItemWeight = value;
|
||||
OnPropertyChanged(nameof(SearchClickedItemWeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string Language { get; set; } = "en";
|
||||
|
||||
public Theme Theme { get; set; } = Theme.System;
|
||||
|
||||
Reference in New Issue
Block a user