mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[PTRun][Program]Add null check to fix a race condition on updating UWP icon paths (#33053)
This commit is contained in:
committed by
GitHub
parent
37059d4db0
commit
b6f0c69e13
@@ -129,12 +129,15 @@ namespace Microsoft.Plugin.Program
|
||||
}
|
||||
|
||||
public void UpdateUWPIconPath(Theme theme)
|
||||
{
|
||||
if (_packageRepository != null)
|
||||
{
|
||||
foreach (UWPApplication app in _packageRepository)
|
||||
{
|
||||
app.UpdateLogoPath(theme);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void IndexPrograms()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user