mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PTRun]Fix null reference issue when clean previous query is on (#19167)
This commit is contained in:
@@ -488,15 +488,8 @@ namespace PowerLauncher
|
||||
}
|
||||
else
|
||||
{
|
||||
var options = new MainViewModel.QueryTuningOptions
|
||||
{
|
||||
SearchClickedItemWeight = _viewModel.GetSearchClickedItemWeight(),
|
||||
SearchQueryTuningEnabled = _viewModel.GetSearchQueryTuningEnabled(),
|
||||
SearchWaitForSlowResults = _viewModel.GetSearchWaitForSlowResults(),
|
||||
};
|
||||
|
||||
_viewModel.QueryText = text;
|
||||
_viewModel.Query(options);
|
||||
_viewModel.Query();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user