Skip to content

Commit

Permalink
improve first PT Run call performance (#12352)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti committed Jul 15, 2021
1 parent e965fcb commit 3c04111
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/launcher/PowerLauncher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using System.Timers;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
using System.Windows.Input;
using interop;
Expand Down Expand Up @@ -116,6 +115,7 @@ private void OnLoaded(object sender, RoutedEventArgs e)
ListBox.SuggestionsList.SelectionChanged += SuggestionsList_SelectionChanged;
ListBox.SuggestionsList.PreviewMouseLeftButtonUp += SuggestionsList_PreviewMouseLeftButtonUp;
_viewModel.PropertyChanged += ViewModel_PropertyChanged;
_viewModel.MainWindowVisibility = Visibility.Collapsed;

BringProcessToForeground();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@ public void ColdStartFix()
list.Add(r);
Results.AddResults(list, _updateToken);
Results.Clear();
MainWindowVisibility = System.Windows.Visibility.Collapsed;

// Fix Cold start for plugins, "m" is just a random string needed to query results
var pluginQueryPairs = QueryBuilder.Build("m");
Expand Down

0 comments on commit 3c04111

Please sign in to comment.