mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +08:00
UpdateUWPIconPath can only be called after all UWP apps are initialzied (#11686)
This commit is contained in:
parent
9eae6cc6f2
commit
b2cff5cbd3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user