UpdateUWPIconPath can only be called after all UWP apps are initialzied (#11686)

This commit is contained in:
Roy
2021-06-10 15:55:54 +02:00
committed by GitHub
parent 9eae6cc6f2
commit b2cff5cbd3

View File

@@ -103,8 +103,6 @@ namespace Microsoft.Plugin.Program
_context = context ?? throw new ArgumentNullException(nameof(context));
_context.API.ThemeChanged += OnThemeChanged;
UpdateUWPIconPath(_context.API.GetCurrentTheme());
var a = Task.Run(() =>
{
Stopwatch.Normal("Microsoft.Plugin.Program.Main - Win32Program index cost", _win32ProgramRepository.IndexPrograms);
@@ -113,6 +111,7 @@ namespace Microsoft.Plugin.Program
var b = Task.Run(() =>
{
Stopwatch.Normal("Microsoft.Plugin.Program.Main - Package index cost", _packageRepository.IndexPrograms);
UpdateUWPIconPath(_context.API.GetCurrentTheme());
});
Task.WaitAll(a, b);