mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
keyboard: Disable "tray" button in lock/login screen
It is not possible to summon the tray via shortcut or dwelling while the screen is locked, so it is odd to allow it from the on-screen-keyboard. https://bugzilla.gnome.org/show_bug.cgi?id=683546
This commit is contained in:
parent
ef9f63fe59
commit
18eedbc02d
1 changed files with 7 additions and 0 deletions
|
|
@ -349,6 +349,13 @@ const Keyboard = new Lang.Class({
|
|||
trayButton.reactive = true;
|
||||
trayButton.remove_style_pseudo_class('grayed');
|
||||
}));
|
||||
Main.sessionMode.connect('updated', Lang.bind(this, function() {
|
||||
trayButton.reactive = !Main.sessionMode.isLocked;
|
||||
if (Main.sessionMode.isLocked)
|
||||
trayButton.add_style_pseudo_class('grayed');
|
||||
else
|
||||
trayButton.remove_style_pseudo_class('grayed');
|
||||
}));
|
||||
|
||||
return trayButton;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue