Palette has a visible menu because of invisible items
|Reported by:||benzea||Owned by:||marco|
|Deployments affected:||Action Needed:||never set|
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.
Change History (5)
Changed 8 years ago by benzea
comment:3 Changed 8 years ago by marco
- Action Needed set to never set
- Milestone changed from 8.2.0 (was Update.2) to 9.1.0