mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Added cold start fix (#2385)
This commit is contained in:
committed by
GitHub
parent
a6e8cbc50d
commit
6290630787
@@ -210,10 +210,16 @@ namespace PowerLauncher
|
||||
_resultList = (UI.ResultList)host.Child;
|
||||
_resultList.DataContext = _viewModel;
|
||||
_resultList.Tapped += SuggestionsList_Tapped;
|
||||
_resultList.SuggestionsList.Loaded += SuggestionsList_Loaded;
|
||||
_resultList.SuggestionsList.SelectionChanged += SuggestionsList_SelectionChanged;
|
||||
_resultList.SuggestionsList.ContainerContentChanging += SuggestionList_UpdateListSize;
|
||||
}
|
||||
|
||||
private void SuggestionsList_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
||||
{
|
||||
_viewModel.ColdStartFix();
|
||||
}
|
||||
|
||||
private bool IsKeyDown(VirtualKey key)
|
||||
{
|
||||
var keyState = CoreWindow.GetForCurrentThread().GetKeyState(key);
|
||||
|
||||
Reference in New Issue
Block a user