Verified Commit e2b631d4 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[sddm-theme] KeyboardButton: Fix layout name not being shown

It used to cause an error like this:

    [03:21:31.246] (WW) GREETER: file:///usr/share/sddm/themes/breeze/KeyboardButton.qml:19: TypeError: Cannot read property 'shortName' of null

(cherry picked from commit 2e9020ca)
parent b5c5979a
Pipeline #171753 passed with stage
in 11 minutes and 12 seconds
......@@ -10,7 +10,7 @@ PlasmaComponents.ToolButton {
property int currentIndex: -1
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Keyboard Layout: %1", instantiator.objectAt(currentIndex).shortName)
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Keyboard Layout: %1", keyboard.layouts[currentIndex].shortName)
implicitWidth: minimumWidth
visible: menu.items.length > 1
......@@ -27,7 +27,6 @@ PlasmaComponents.ToolButton {
onObjectRemoved: keyboardMenu.removeItem( object )
delegate: QQC.MenuItem {
text: modelData.longName
property string shortName: modelData.shortName
onTriggered: {
keyboard.currentLayout = model.index
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment