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
@ -178,7 +178,9 @@ const InputSourceIndicator = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setLockedState: function(locked) {
|
setLockedState: function(locked) {
|
||||||
|
if (Main.sessionMode.allowSettings) {
|
||||||
this._showLayoutItem.actor.visible = !locked;
|
this._showLayoutItem.actor.visible = !locked;
|
||||||
|
}
|
||||||
this.menu.setSettingsVisibility(!locked);
|
this.menu.setSettingsVisibility(!locked);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user