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

[client] Fix race condition with systray ready #2993

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

mohamed-essam
Copy link
Contributor

Describe your changes

fyne.io/systray package calls onTrayReady before fully initializing, causing some calls (e.g SetIcon) to fail silently because props global variable inside systray package is not yet set, while the MenuItems can be updated normally without failure.

This causes netbird-ui icon to stay stuck on Disconnected if netbird service was running and connected before netbird-ui starts up.

This is mainly a workaround since the issue in systray is not responsive.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

Copy link

sonarqubecloud bot commented Dec 5, 2024

@mohamed-essam mohamed-essam changed the title Fix race condition with systray ready [client] Fix race condition with systray ready Dec 5, 2024
@braginini braginini merged commit a4a3074 into netbirdio:main Dec 14, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants