-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix Icon Support for Shortcut Creation #2242
base: main
Are you sure you want to change the base?
Conversation
9669126
to
970f4cf
Compare
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.
If I'm correct, the icon is used multiple times during the execution of winutil. There could be potential for optimization to make sure that if the icon already exists on disk, nothing needs to be downloaded and converted again
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.
Add a few notes in the code comments about what I think could still be optimized:)
If we are already trying to fix the multiple requests to the same image, I would suggest modifying:
|
Thanks for pointing these issues out @MyDrift-user Will try and compose a new PR that will provide a base system for managing resources and, in particular, images. |
…rly return Co-authored-by: Martin Wiethan <[email protected]>
…s well as some other changes Besides the updated documentation for 'ConvertTo-Icon' Function, the icon file path has changed from '$env:TEMP\cttlogo.ico' into '$env:LOCALAPPDATA\winutil\cttlogo.ico', and add edge-case of Folder not being found for the Icon File in 'ConvertTo-Icon' Code.
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.
Looks good to me (haven't run it but only glanced at the code and the changes)
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.
Looks good & works well on my end
Issues this PR tries to resolve
Resolves: #2241
Screenshot(s)