[gnome-shell/wip/fmuellner/minor-bug-fixes: 8/9] keyboard: Fix undefined variable in fall-through message
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/minor-bug-fixes: 8/9] keyboard: Fix undefined variable in fall-through message
- Date: Wed, 30 Jan 2019 12:09:53 +0000 (UTC)
commit b5caf93f13e7b640ef8ed35b4baa2e0b0370a6cf
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jan 29 22:58:40 2019 +0100
keyboard: Fix undefined variable in fall-through message
Spotted by eslint.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375
js/ui/status/keyboard.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 0e5b18504..7f830b6df 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -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());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]