Skip to content

Commit c70aabc

Browse files
committed
virtualKeyboard.js: Only show the layout button if there are other
layouts.
1 parent 0527d4e commit c70aabc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/ui/virtualKeyboard.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,12 @@ class Keyboard extends St.BoxLayout {
10431043
let icon = key.icon;
10441044

10451045
if (action === 'next-layout') {
1046-
extraButton = new ActiveGroupKey(this._keyboardController);
1046+
let groups = this._keyboardController.getGroups();
1047+
if (groups.length > 1) {
1048+
extraButton = new ActiveGroupKey(this._keyboardController);
1049+
} else {
1050+
continue;
1051+
}
10471052
} else {
10481053
extraButton = new Key(key.label || '', [], icon);
10491054
}

0 commit comments

Comments
 (0)