keyboard: Fix undefined variable in fall-through message

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375
This commit is contained in:
Florian Müllner 2019-01-29 22:58:40 +01:00 committed by Florian Müllner
parent 3134222d27
commit 4f76e05058

View File

@ -969,7 +969,8 @@ class InputSourceIndicator extends PanelMenu.Button {
}
let item;
switch (prop.get_prop_type()) {
let type = prop.get_prop_type();
switch (type) {
case IBus.PropType.MENU:
item = new PopupMenu.PopupSubMenuMenuItem(prop.get_label().get_text());
this._buildPropSubMenu(item.menu, prop.get_sub_props());