-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[PT Run]Removed BinaryFormatter #19036
Conversation
This is pretty interesting. Somehow I feel this might fix those Image.cache can't be accessed errors we get from time to time ;) There's only hoping. |
I will look into this |
I have retested my changes.
@jaimecbernardo are you able to reproduce it? EDIT: the interesting thing is that the code for extract thumbnails fail only when executed in parallel. I am not able to repro the issue with a foreach. |
You're right, I'm able to repro it on 0.59.1 as well, so no regression here. 🤔 |
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! Thank you for the contribution!
I will check if there is already an issue for this, if not I will open one. |
Created issue #19138 |
Summary of the Pull Request
Replaced insicure BinaryFormatter.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Replaced the BInaryFormatter with the already existing JsonStorage.
Validation Steps Performed
%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json
should be created%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json
should be updated with cached images