keyboard: Minor cleanup
_syncEnabled() will call _setupKeyboard() if necessary, so no need to call it explicitly before. https://bugzilla.gnome.org/show_bug.cgi?id=788188
This commit is contained in:
parent
f2917968ea
commit
d5f081a108
@ -324,10 +324,8 @@ var Keyboard = new Lang.Class({
|
|||||||
|
|
||||||
_sync: function () {
|
_sync: function () {
|
||||||
if (this._keyboard &&
|
if (this._keyboard &&
|
||||||
this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE)) {
|
this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE))
|
||||||
this._destroyKeyboard();
|
this._destroyKeyboard();
|
||||||
this._setupKeyboard();
|
|
||||||
}
|
|
||||||
|
|
||||||
this._syncEnabled();
|
this._syncEnabled();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user