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

EditorToaster::popup_str() must always defer to the main MessageQueue #102181

Merged

Conversation

kisg
Copy link
Contributor

@kisg kisg commented Jan 30, 2025

This change is required, because the implementation of call_deferred() no longer ensures this behaviour: if a MessageQueue is created on a thread, then that is used instead of the main MessageQueue.

Developed by Migeran.

This change is required, because the implementation of call_deferred()
no longer ensures this behaviour: if a MessageQueue is created on a thread,
then that is used instead of the main MessageQueue.
@kisg kisg requested review from a team as code owners January 30, 2025 10:10
@AThousandShips AThousandShips added this to the 4.4 milestone Jan 30, 2025
@akien-mga akien-mga changed the title EditorToaster::popup_str() must always defer to the main MessageQueue EditorToaster::popup_str() must always defer to the main MessageQueue Jan 30, 2025
@akien-mga akien-mga requested review from RandomShaper and removed request for a team January 30, 2025 11:33
@KoBeWi
Copy link
Member

KoBeWi commented Jan 30, 2025

Maybe it's worth it to add a helper method to Callable, like call_deferred_main_queue() or something.

@Repiteo Repiteo merged commit 002d90f into godotengine:master Jan 30, 2025
19 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 30, 2025

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.

5 participants