Hide user menu and a11y menu in the screen lock
This is a temporary patch. The user menu button needs to move to the left, and the a11y menu in some cases needs to be hidden outside of the screen lock too. https://bugzilla.gnome.org/show_bug.cgi?id=681143
This commit is contained in:
parent
cbd2188c04
commit
cbb56b6128
@ -76,7 +76,7 @@ const ATIndicator = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setLockedState: function(locked) {
|
setLockedState: function(locked) {
|
||||||
this.menu.setSettingsVisibility(!locked);
|
this.actor.visible = !locked;
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildItemExtended: function(string, initial_value, writable, on_set) {
|
_buildItemExtended: function(string, initial_value, writable, on_set) {
|
||||||
|
@ -540,9 +540,7 @@ const UserMenuButton = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setLockedState: function(locked) {
|
setLockedState: function(locked) {
|
||||||
if (locked)
|
this.actor.visible = !locked;
|
||||||
this.menu.close();
|
|
||||||
this.actor.reactive = !locked;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDestroy: function() {
|
_onDestroy: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user