mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +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:
@@ -159,7 +159,6 @@ namespace PowerLauncher
|
||||
|
||||
SearchBox.QueryTextBox.DataContext = _viewModel;
|
||||
SearchBox.QueryTextBox.PreviewKeyDown += Launcher_KeyDown;
|
||||
|
||||
SetupSearchTextBoxReactiveness(_viewModel.GetSearchQueryResultsWithDelaySetting(), _viewModel.GetSearchInputDelaySetting());
|
||||
_viewModel.RegisterSettingsChangeListener(
|
||||
(s, prop_e) =>
|
||||
@@ -489,8 +488,15 @@ namespace PowerLauncher
|
||||
}
|
||||
else
|
||||
{
|
||||
var options = new MainViewModel.QueryTuningOptions
|
||||
{
|
||||
SearchClickedItemWeight = _viewModel.GetSearchClickedItemWeight(),
|
||||
SearchQueryTuningEnabled = _viewModel.GetSearchQueryTuningEnabled(),
|
||||
SearchWaitForSlowResults = _viewModel.GetSearchWaitForSlowResults(),
|
||||
};
|
||||
|
||||
_viewModel.QueryText = text;
|
||||
_viewModel.Query();
|
||||
_viewModel.Query(options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user