Hide the user menu in the GDM greeter lock screen
https://bugzilla.gnome.org/show_bug.cgi?id=683705
This commit is contained in:
parent
8cf9baa132
commit
785be2f327
@ -48,6 +48,7 @@ const _modes = {
|
|||||||
|
|
||||||
'lock-screen': {
|
'lock-screen': {
|
||||||
isLocked: true,
|
isLocked: true,
|
||||||
|
isGreeter: undefined,
|
||||||
unlockDialog: undefined,
|
unlockDialog: undefined,
|
||||||
components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
|
components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
|
||||||
panel: {
|
panel: {
|
||||||
|
@ -577,6 +577,8 @@ const UserMenuButton = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_sessionUpdated: function() {
|
_sessionUpdated: function() {
|
||||||
|
this.actor.visible = !Main.sessionMode.isGreeter;
|
||||||
|
|
||||||
let allowSettings = Main.sessionMode.allowSettings;
|
let allowSettings = Main.sessionMode.allowSettings;
|
||||||
this._statusChooser.setSensitive(allowSettings);
|
this._statusChooser.setSensitive(allowSettings);
|
||||||
this._systemSettings.visible = allowSettings;
|
this._systemSettings.visible = allowSettings;
|
||||||
|
Loading…
Reference in New Issue
Block a user