Replies: 1 comment 12 replies
-
I thought the package icon system was quite straight-forward... You only need to call one of the following methods, which return a file:/// or ms-appx:/// Uri pointing to the icon. This method will handle getting the icon's network url, downloading or updating the icon if necessary, caching it and downsizing it to prevent abusive disk space automatically. class Package
{
public virtual Uri GetIconUrl() // Returns the icon or a default one
public virtual Uri? GetIconUrlIfAny() // Returns the icon or null
} What did you find that was dead code? I can't think of it right now, but perhaps even I forgot this code existed 😅 |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Marti!
Once again, GitHub won't let me make an empty draft PR and I can't work on this right now (and may not be able to for a while) but when I'm able, now that #3070 has been merged I would like to improve the operation history feature (as mentioned in the #3070 comment thread). Before that, however, I was thinking about reorganizing the whole package icon system (so I can easily use package icons in the operation history list rather than tenuously copy-pasting code from other parts of the application), since it seems like there's a lot of dead icon code throughout the codebase that I found when correcting #3100. I would like to reorganize / simplify the package icon system if that's alright with you? This would just be internal codebase changes, it shouldn't affect the user experience in any way. I'm not totally sure what I have in mind; I'll sit down and think about it when I can (and make a draft PR so you can veto anything you don't feel fits with the existing codebase). What do you think?
Beta Was this translation helpful? Give feedback.
All reactions