mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Program plugin logs (#11497)
This commit is contained in:
parent
36fb2a434f
commit
338b7b8a29
@ -9,6 +9,7 @@ using Microsoft.Plugin.Program.Logger;
|
|||||||
using Microsoft.Plugin.Program.Programs;
|
using Microsoft.Plugin.Program.Programs;
|
||||||
using Windows.ApplicationModel;
|
using Windows.ApplicationModel;
|
||||||
using Wox.Infrastructure.Storage;
|
using Wox.Infrastructure.Storage;
|
||||||
|
using Wox.Plugin.Logger;
|
||||||
|
|
||||||
namespace Microsoft.Plugin.Program.Storage
|
namespace Microsoft.Plugin.Program.Storage
|
||||||
{
|
{
|
||||||
@ -80,6 +81,7 @@ namespace Microsoft.Plugin.Program.Storage
|
|||||||
var support = Environment.OSVersion.Version.Major >= windows10.Major;
|
var support = Environment.OSVersion.Version.Major >= windows10.Major;
|
||||||
|
|
||||||
var applications = support ? Programs.UWP.All() : Array.Empty<UWPApplication>();
|
var applications = support ? Programs.UWP.All() : Array.Empty<UWPApplication>();
|
||||||
|
Log.Info($"Indexed {applications.Length} packaged applications", GetType());
|
||||||
SetList(applications);
|
SetList(applications);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,6 +243,7 @@ namespace Microsoft.Plugin.Program.Storage
|
|||||||
public void IndexPrograms()
|
public void IndexPrograms()
|
||||||
{
|
{
|
||||||
var applications = Programs.Win32Program.All(_settings);
|
var applications = Programs.Win32Program.All(_settings);
|
||||||
|
Log.Info($"Indexed {applications.Length} win32 applications", GetType());
|
||||||
SetList(applications);
|
SetList(applications);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user