mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
[PTRun][Program]Add null check to fix a race condition on updating UWP icon paths (#33053)
This commit is contained in:
parent
37059d4db0
commit
b6f0c69e13
@ -130,9 +130,12 @@ namespace Microsoft.Plugin.Program
|
||||
|
||||
public void UpdateUWPIconPath(Theme theme)
|
||||
{
|
||||
foreach (UWPApplication app in _packageRepository)
|
||||
if (_packageRepository != null)
|
||||
{
|
||||
app.UpdateLogoPath(theme);
|
||||
foreach (UWPApplication app in _packageRepository)
|
||||
{
|
||||
app.UpdateLogoPath(theme);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user