GUI system tray buttons won't get enabled after closing windows #1108

Closed
opened 2025-11-20 05:24:13 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @mhghw on GitHub (Jul 30, 2024).

Describe the problem

I have a problem with Netbird GUI (ver 0.28.6) with Ubuntu 23.10.

  1. If you open some window items (like Advance settings or Routes) and then click on the system tray, then close the window item, the button of that item will be disabled until you restart the GUI app. (the Routes item will be re-enabled after disconnect/connect but Advanced settings item won't).

  2. If you press the connect button, it will not get disabled, you can press it more than one time.(Idk if this produces a bug, but it mean you can send multiple up command to the daemon server).

3)If you mess around with system tray you'll get some bugs like one of the screenshot I'll send.

To Reproduce

Start to open the system tray menu while some windows are open, then close the windows and check the system tray menu.

Expected behavior

System tray menu buttons should be enabled/disabled correctly in the intended status.

Are you using NetBird Cloud?

Yes

NetBird version

0.28.6
ui: 0.28.6

NetBird status -d output:

Screenshots


This is the one if you mess around with GUI (connect & disconnect are enabled)


Network Routes button is disabled(window is closed) & I can't click on Advanced settings button

Additional context
I don't have the problem with Windows and I didn't test it with Mac.
I've found that the problem is not with the code logic but with the github.com/getlantern/systray package, I tested it with fyne.io/systray and found no problem(they both share the same API).

Originally created by @mhghw on GitHub (Jul 30, 2024). **Describe the problem** I have a problem with Netbird GUI (ver 0.28.6) with Ubuntu 23.10. 1) If you open some window items (like Advance settings or Routes) and then click on the system tray, then close the window item, the button of that item will be disabled until you restart the GUI app. (the Routes item will be re-enabled after disconnect/connect but Advanced settings item won't). 2) If you press the connect button, it will not get disabled, you can press it more than one time.(Idk if this produces a bug, but it mean you can send multiple up command to the daemon server). 3)If you mess around with system tray you'll get some bugs like one of the screenshot I'll send. **To Reproduce** Start to open the system tray menu while some windows are open, then close the windows and check the system tray menu. **Expected behavior** System tray menu buttons should be enabled/disabled correctly in the intended status. **Are you using NetBird Cloud?** Yes **NetBird version** `0.28.6` ui: `0.28.6` **NetBird status -d output:** **Screenshots** ![](https://github.com/user-attachments/assets/506401ea-94c7-4620-bf24-81b83a7ec62a) This is the one if you mess around with GUI (connect & disconnect are enabled) ![](https://github.com/user-attachments/assets/df44b1a7-f303-49d1-8218-5236d35c6596) Network Routes button is disabled(window is closed) & I can't click on Advanced settings button **Additional context** I don't have the problem with Windows and I didn't test it with Mac. I've found that the problem is not with the code logic but with the `github.com/getlantern/systray` package, I tested it with `fyne.io/systray` and found no problem(they both share the same API).
saavagebueno added the triage-needed label 2025-11-20 05:24:13 -05:00
Author
Owner

@mhghw commented on GitHub (Aug 28, 2024):

fixed in #2309

@mhghw commented on GitHub (Aug 28, 2024): fixed in #2309
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1108