mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
keyboard: _showLayoutItem is only defined if allowSettings.
Check Main.sessionMode.allowSettings is true before accessing the actor item of _showLayoutItem. https://bugzilla.gnome.org/show_bug.cgi?id=681101
This commit is contained in:
parent
c3179583c3
commit
9082b4df48
1 changed files with 3 additions and 1 deletions
|
|
@ -178,7 +178,9 @@ const InputSourceIndicator = new Lang.Class({
|
|||
},
|
||||
|
||||
setLockedState: function(locked) {
|
||||
this._showLayoutItem.actor.visible = !locked;
|
||||
if (Main.sessionMode.allowSettings) {
|
||||
this._showLayoutItem.actor.visible = !locked;
|
||||
}
|
||||
this.menu.setSettingsVisibility(!locked);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue