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

WinForms: Show icon when set in Dialog #2599

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Conversation

cyanfish
Copy link
Contributor

In DialogHandler ShowIcon is set to false:

If an icon is manually set it should be displayed.

Using an "if" instead of just setting to true to avoid unnecessary redrawing.

@cwensley
Copy link
Member

Great, thanks for the contribution!

Would it make sense to set ShowIcon = false if it was then set to null? (I guess the code would have to be updated to allow a null icon too).

@cyanfish
Copy link
Contributor Author

Yeah, we'd need to update WinForms/WPF/GTK to handle nulls. I could do it if you want, but IMO an Icon is generally a set-once-at-construction thing and I don't think there'd be much use for that.

@cwensley cwensley merged commit 51e1798 into picoe:develop Dec 16, 2023
3 checks passed
@cwensley cwensley added the bug label Dec 16, 2023
@cwensley cwensley added this to the 2.8.3 milestone Dec 16, 2023
@cyanfish cyanfish deleted the wfdialogicon branch December 16, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants