panel: Don't allow opening hidden menus via keybindings
We shouldn't allow toggling menus that aren't supported by the current session mode, but as indicators are hidden rather than destroyed on mode switches, it is not enough to check for an indicator's existence. https://gitlab.gnome.org/GNOME/gnome-shell/issues/851
This commit is contained in:
parent
f78efc46e7
commit
c1a6effea0
@ -957,8 +957,8 @@ class Panel extends St.Widget {
|
||||
}
|
||||
|
||||
_toggleMenu(indicator) {
|
||||
if (!indicator) // menu not supported by current session mode
|
||||
return;
|
||||
if (!indicator || !indicator.container.visible)
|
||||
return; // menu not supported by current session mode
|
||||
|
||||
let menu = indicator.menu;
|
||||
if (!indicator.actor.reactive)
|
||||
|
Loading…
Reference in New Issue
Block a user