Ticket #6257 (new defect)
Palette has a visible menu because of invisible items
| Reported by: | benzea | Owned by: | marco |
|---|---|---|---|
| Priority: | normal | Milestone: | 9.1.0-cancelled |
| Component: | sugar | Version: | |
| Keywords: | Cc: | Edipser | |
| Action Needed: | never set | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
For the networks it happens that most of the time the "Disconnect..." menu item is invisible, but the menu is still visible. This is because the code in the palette to show the menu just checks whether there are any items.
There different ways to get past this problem:
- Never have any hidden content, but remove the items instead
- Make the palette smarter about showing the widgets
I will attach a patch that implements the second approach. Note that there are some issues with this too. The problem is if items are added to the menu, and shown later on. The code in the patch will not handle that.
I have modified the order of the add/show for the network palette because of this. Other solutions would be updating the visibilities in the palette from an high priority idle handler, or forcing the activity to call update_visibilities() on the palette.


