-
-
Notifications
You must be signed in to change notification settings - Fork 448
[Program Plugin] Fix UWP icon missing issue #1492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Program Plugin] Fix UWP icon missing issue #1492
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check comment and we can merge after that. Could you share an example that the logo won't be loaded so I can give it a test?
// Just ignore all qualifiers | ||
// select like logo.[xxx_yyy].png | ||
// https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast | ||
var selected = files.FirstOrDefault(file => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should prefer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's easy but I found some apps don't have a 44x44 logo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to find closest to 44x44 in the new commit. It seems to work well.
windows security center |
@VictoriousRaptor What do you think about just use the icoPath property instead of the callback to let ImageLoader loads the image? I think it's no difference than a specific logo (we can adjust the imageloader a bit to load the actual image but currently icon also works I think). |
Don't quite know how the current callback works. What is the purpose of this change? |
As you have commented. Let the imageloader loads the icon? The current callback handles that separately, but I think it is unnecessary since there is a logo image there. |
I think it's fine. But current callback make the image plated so we need to beware of that. |
yeah I am ok with the current change. Let's leave it to the future~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Sorry for the late testing....
Program plugin can't get icons for some uwp programs because of complex icon filenames or path finding issue. Tried to fix it.