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

FlatpakBackend: set action enabled in main thread #2187

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

danirabbit
Copy link
Member

Accidentally introduced a crash in #2181

@danirabbit danirabbit requested a review from a team June 20, 2024 20:47
@davidmhewitt
Copy link
Member

I'm reviewing on my phone so it's hard to see the full context. But I think the working variable is changed from another thread so the notify signal may run in another thread context.

It would be better to wrap the GTK code in an Idle.add which would ensure it runs on the GTK thread.

@danirabbit
Copy link
Member Author

@davidmhewitt wrapped in an Idle instead. Seems to work. Thanks for the tip!

@danirabbit danirabbit merged commit d1b40f8 into main Jun 20, 2024
2 of 4 checks passed
@danirabbit danirabbit deleted the danirabbit/flatpakbackend-actionsinthread branch June 20, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants