Skip to content
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

[ZoomIt]Fix transparent draw after changing another setting #37042

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

While testing the release candidate with ZoomIt, we found an error that caused the draw mode to not work after changing a Setting.
It turns out we were missing the code that sets opacity after loading the settings from PowerToys.
This PR adds that code.

This PR also identifies some other settings that are used internally by ZoomIt as state only and removes them from the settings the Settings application knows, so that we don't keep status for those while manipulating other settings and end up overwriting the changes the running ZoomIt has done to that internal state.

Validation Steps Performed

1 - Start ZoomIt.
2 - Verify Draw works.
3 - Change any Setting.
4 - Verify Draw still works. (Before this fix it would try to draw with transparent ink)
5 - Change pen color (Press G or B in draw mode for Green or Blue, for example)
6 - Try to change any Setting.
7 - Enter draw mode and verify your color change is still remembered.

Copy link
Collaborator

@drawbyperpetual drawbyperpetual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix works well for me!

@jaimecbernardo jaimecbernardo merged commit eeeabc8 into main Jan 23, 2025
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants