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

Add error checks and harmonize behavior of the set_icon method. #78437

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 19, 2023

Fixes #46189.

Supersede #46247

Calling set_icon with zero size image prints error and keeps previous icon.
Calling it with null image reference resets icon (to the bundle icon on macOS, and default OS icon on Windows/Linux).

@bruvzg bruvzg marked this pull request as ready for review July 3, 2023 10:51
@bruvzg bruvzg requested review from a team as code owners July 3, 2023 10:51
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Jul 3, 2023
@akien-mga akien-mga changed the title Add error checks and harmonize behavior of the set_icon method. Add error checks and harmonize behavior of the set_icon method. Jul 6, 2023
@YuriSizov YuriSizov merged commit 2b47f67 into godotengine:master Jul 12, 2023
@YuriSizov
Copy link
Contributor

Thanks!

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.

Executing OS.set_icon(Image.new()) crashes Godot
3 participants