From d5f081a1086c0b2539e611fbe8368529dc9520f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 13 Oct 2017 17:46:58 +0200 Subject: [PATCH] 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 --- js/ui/keyboard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index da36c3615..87635ce83 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -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(); },