@@ -17,6 +17,7 @@
1717import QtQuick 2.4
1818import QtQuick.Window 2.2
1919import Ubuntu.Components 1.3
20+import AccountsService 0.1
2021
2122Item {
2223 id: root
@@ -184,9 +185,12 @@ Item {
184185
185186 property int ownIndex: index
186187 property bool overflow: row.width - x > overFlowWidth
187− property bool hidden: !expanded && (overflow || !indicatorVisible || hideSessionIndicator)
188+ property bool hidden: !expanded && (overflow || !indicatorVisible || hideSessionIndicator || hideKeyboardIndicator)
188189 // HACK for indicator-session
189190 readonly property bool hideSessionIndicator: identifier == "indicator-session" && Math.min(Screen.width, Screen.height) <= units.gu(60)
191+ // HACK for indicator-keyboard
192+ readonly property bool hideKeyboardIndicator: identifier == "indicator-keyboard" && (AccountsService.keymaps.length < 2 || !hasKeyboard)
193+
190194
191195 height: row.height
192196 expanded: root.expanded
@@ -202,7 +206,7 @@ Item {
202206 NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing }
203207 }
204208
205− width: ((expanded || indicatorVisible) && !hideSessionIndicator) ? implicitWidth : 0
209+ width: ((expanded || indicatorVisible) && !hideSessionIndicator && !hideKeyboardIndicator) ? implicitWidth : 0
206210
207211 Behavior on width {
208212 NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing }