mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
speedup program load time
This commit is contained in:
parent
e2f8f5095f
commit
743658032a
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using Wox.Infrastructure;
|
using Wox.Infrastructure;
|
||||||
using Wox.Infrastructure.Logger;
|
using Wox.Infrastructure.Logger;
|
||||||
@ -61,8 +62,15 @@ namespace Wox.Plugin.Program
|
|||||||
|
|
||||||
public static void IndexPrograms()
|
public static void IndexPrograms()
|
||||||
{
|
{
|
||||||
_win32s = Win32.All(_settings);
|
var t1 = Task.Run(() =>
|
||||||
_uwps = UWP.All();
|
{
|
||||||
|
_win32s = Win32.All(_settings);
|
||||||
|
});
|
||||||
|
var t2 = Task.Run(() =>
|
||||||
|
{
|
||||||
|
_uwps = UWP.All();
|
||||||
|
});
|
||||||
|
Task.WaitAll(t1, t2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Control CreateSettingPanel()
|
public Control CreateSettingPanel()
|
||||||
|
Loading…
Reference in New Issue
Block a user