Skip to content

Commit 5149ed5

Browse files
committed
keyboardManager.js: Update the definition of 'multiple sources'.
When only a single xkb layout is set up, there's no need to keep the keyboard layout applet visible. However, the applet remains useful with ibus sources, even if there's only one.
1 parent bd50214 commit 5149ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ui/keyboardManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ var InputSourceManager = class {
946946
}
947947

948948
get multipleSources() {
949-
return this.numInputSources > 1;
949+
return this.numInputSources > 1 || this.inputSources[0].type == INPUT_SOURCE_TYPE_IBUS;
950950
}
951951

952952
get showFlags() {

0 commit comments

Comments
 (0)