mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
remove unused stop watcher
This commit is contained in:
@@ -147,23 +147,13 @@ namespace Wox.Plugin.Program.Programs
|
|||||||
var support = Environment.OSVersion.Version.Major >= windows10.Major;
|
var support = Environment.OSVersion.Version.Major >= windows10.Major;
|
||||||
if (support)
|
if (support)
|
||||||
{
|
{
|
||||||
var watch = new System.Diagnostics.Stopwatch();
|
|
||||||
watch.Start();
|
|
||||||
|
|
||||||
var applications = CurrentUserPackages().AsParallel().SelectMany(p => new UWP(p).Apps).ToArray();
|
var applications = CurrentUserPackages().AsParallel().SelectMany(p => new UWP(p).Apps).ToArray();
|
||||||
|
|
||||||
watch.Stop();
|
|
||||||
Log.Info("UWP ALL" + watch.ElapsedMilliseconds);
|
|
||||||
|
|
||||||
return applications;
|
return applications;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return new Application[] { };
|
return new Application[] { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IEnumerable<Package> CurrentUserPackages()
|
private static IEnumerable<Package> CurrentUserPackages()
|
||||||
|
|||||||
Reference in New Issue
Block a user