@@ -60,6 +60,7 @@ public IReadOnlyList<string> GetVersions(IPackage package)
6060 {
6161 try
6262 {
63+ // Load native icon
6364 if ( Manager . Capabilities . SupportsCustomPackageIcons )
6465 {
6566 var nativeIcon = GetIcon_UnSafe ( package ) ;
@@ -71,11 +72,11 @@ public IReadOnlyList<string> GetVersions(IPackage package)
7172
7273 // Try to get the icon especially for this package
7374 string ? iconUrl = IconDatabase . Instance . GetIconUrlForId ( Manager . Name + "." + package . Id ) ;
74- if ( iconUrl is not null ) return new CacheableIcon ( new Uri ( iconUrl ) , package . VersionString ) ;
75+ if ( iconUrl is not null ) return new CacheableIcon ( new Uri ( iconUrl ) ) ;
7576
7677 // Try to get other corresponding icons for the package
7778 iconUrl = IconDatabase . Instance . GetIconUrlForId ( package . GetIconId ( ) ) ;
78- if ( iconUrl is not null ) return new CacheableIcon ( new Uri ( iconUrl ) , package . VersionString ) ;
79+ if ( iconUrl is not null ) return new CacheableIcon ( new Uri ( iconUrl ) ) ;
7980
8081 return null ;
8182 } catch ( Exception e )
@@ -92,6 +93,7 @@ public IReadOnlyList<Uri> GetScreenshots(IPackage package)
9293 {
9394 IReadOnlyList < Uri > URIs = [ ] ;
9495
96+ // Load native screenshots
9597 if ( Manager . Capabilities . SupportsCustomPackageScreenshots )
9698 {
9799 URIs = GetScreenshots_UnSafe ( package ) ;
@@ -101,6 +103,19 @@ public IReadOnlyList<Uri> GetScreenshots(IPackage package)
101103 Logger . Debug ( $ "Manager { Manager . Name } does not support native screenshots") ;
102104 }
103105
106+ // Try to get exact screenshots for this package
107+ if ( ! URIs . Any ( ) )
108+ {
109+ string [ ] UrlArray = IconDatabase . Instance . GetScreenshotsUrlForId ( Manager . Name + "." + package . Id ) ;
110+ List < Uri > UriList = [ ] ;
111+ foreach ( string url in UrlArray )
112+ {
113+ if ( url != "" ) UriList . Add ( new Uri ( url ) ) ;
114+ }
115+ URIs = UriList ;
116+ }
117+
118+ // Try to get matching screenshots for this package
104119 if ( ! URIs . Any ( ) )
105120 {
106121 string [ ] UrlArray = IconDatabase . Instance . GetScreenshotsUrlForId ( package . GetIconId ( ) ) ;
0 commit comments