Skip to content

Commit fb62dcb

Browse files
authored
Fix: Fixed loading icons in Properties Customize page (#11543)
1 parent a3451e5 commit fb62dcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/ViewModels/Properties/CustomizationViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ await App.Window.DispatcherQueue.EnqueueAsync(() =>
8888
public void LoadIconsForPath(string path)
8989
{
9090
IconResourceItemPath = path;
91+
_dllIcons.Clear();
9192

9293
var icons = Win32API.ExtractIconsFromDLL(path);
93-
if (icons.Count == 0)
94+
if (icons?.Count is null or 0)
9495
return;
9596

9697
foreach(var item in icons)

0 commit comments

Comments
 (0)