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:
Florian Müllner 2017-10-13 17:46:58 +02:00
parent f2917968ea
commit d5f081a108

View File

@ -324,10 +324,8 @@ var Keyboard = new Lang.Class({
_sync: function () {
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._setupKeyboard();
}
this._syncEnabled();
},