From 7e1b4692e29f728af94a7ea9b4962255d45914ed Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Sat, 2 Mar 2013 16:51:00 +0100 Subject: [PATCH] status/keyboard: Don't show the switcher with less than 2 items https://bugzilla.gnome.org/show_bug.cgi?id=695000 --- js/ui/status/keyboard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 3a9fc1c05..eb668fa19 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -398,6 +398,9 @@ const InputSourceIndicator = new Lang.Class({ }, _switchInputSource: function(display, screen, window, binding) { + if (this._mruSources.length < 2) + return; + let popup = new InputSourcePopup(this._mruSources, this._keybindingAction, this._keybindingActionBackward); let modifiers = binding.get_modifiers(); let backwards = modifiers & Meta.VirtualModifier.SHIFT_MASK;