status/keyboard: Don't show the switcher with less than 2 items

https://bugzilla.gnome.org/show_bug.cgi?id=695000
This commit is contained in:
Rui Matos 2013-03-02 16:51:00 +01:00
parent c1dd971ce9
commit 7e1b4692e2

View File

@ -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;