-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Always create new small icons for forms #13983
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
Conversation
If the user provided icon matched the size of the small icon we would delete it. Add a regression test.
Shyam-Gupta
left a comment
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.
|
/backport to release/10.0 |
|
Started backporting to release/10.0: https://github.com/dotnet/winforms/actions/runs/18731983854 |
Backport of #13983 to release/10.0 /cc @JeremyKuhne ## Customer Impact Users setting a Form Icon that matches the current screen small icon size will have their Icon disposed, causing an `ObjectDisposedException` when using the original Icon. There is no easy workaround. ## Testing Manual testing with user scenario. Regression test. ## Risk Low, now always creating a new Icon instance.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13983 +/- ##
===================================================
- Coverage 77.14756% 77.14691% -0.00065%
===================================================
Files 3276 3276
Lines 645117 645125 +8
Branches 47705 47705
===================================================
+ Hits 497692 497694 +2
- Misses 143739 143751 +12
+ Partials 3686 3680 -6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@JeremyKuhne I left a comment in code about this change that's warry me a bit... |
If the user provided icon matched the size of the small icon we would delete it. Add a regression test.
Fixes #13963
Microsoft Reviewers: Open in CodeFlow