[ ] Reviewed feedback from the "Sonar Cloud" bot. Note that you have to wait
for the "CI / Unit Tests") to complete first. Failed Unit tests can be
debugged by adding the label "verbose logging" to the GitHub PR.
Description of the Change
The change made here (#2053) aimed to resolve the logic issue with how the foreground icon is resolved. As it turns out, the fix wasn't quite right as it made the assumption that any non-schema type would have a null foreground icon, whereas it actually had the default unknown icon. Since the icon was never null, the subsequent else if statement was never reached.
This PR fixes that logic so that rather first checking is the icon is null, it checks if the icons matches the default unknown icon
Alternate Designs
Why Should This Be In Core?
Fix a logic issue in Core
Benefits
Non-schema types can once again now have icons applied if there is an existing icon matching the type name + still adheres to checking schema first (which was the purpose of the original PR)
Prerequisites
[x] Reviewed the checklist
[ ] Reviewed feedback from the "Sonar Cloud" bot. Note that you have to wait for the "CI / Unit Tests") to complete first. Failed Unit tests can be debugged by adding the label "verbose logging" to the GitHub PR.
Description of the Change
The change made here (#2053) aimed to resolve the logic issue with how the foreground icon is resolved. As it turns out, the fix wasn't quite right as it made the assumption that any non-schema type would have a null foreground icon, whereas it actually had the default unknown icon. Since the icon was never null, the subsequent else if statement was never reached.
This PR fixes that logic so that rather first checking is the icon is null, it checks if the icons matches the default unknown icon
Alternate Designs
Why Should This Be In Core?
Fix a logic issue in Core
Benefits
Non-schema types can once again now have icons applied if there is an existing icon matching the type name + still adheres to checking schema first (which was the purpose of the original PR)
Possible Drawbacks
Verification Process
Applicable Issues