From 30cb11f829086aec829ad80674c28f240a522138 Mon Sep 17 00:00:00 2001 From: Ivan Grek Date: Fri, 23 Oct 2020 13:48:52 +0300 Subject: [PATCH] Add the ability to search packages automatically on start --- src/PackageManager.UI/App.xaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PackageManager.UI/App.xaml.cs b/src/PackageManager.UI/App.xaml.cs index 0e7b227..4234bef 100644 --- a/src/PackageManager.UI/App.xaml.cs +++ b/src/PackageManager.UI/App.xaml.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Neptuo.Activators; @@ -105,7 +104,14 @@ protected override void OnStartup(StartupEventArgs e) wnd.Show(); if (Args.IsSelfUpdate) + { RunSelfUpdate(wnd); + } + else + { + wnd.ViewModel.Browser.Search + .Execute(); + } } private void BuildExceptionHandler()