Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 78 | Timer { | |||
---|---|---|---|---|---|
85 | interval: 200 | 85 | interval: 200 | ||
86 | onTriggered: mainStack.forceActiveFocus() | 86 | onTriggered: mainStack.forceActiveFocus() | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | initialItem: Login { | 89 | initialItem: Login { | ||
90 | id: userListComponent | 90 | id: userListComponent | ||
91 | userListModel: userModel | 91 | userListModel: userModel | ||
92 | userListCurrentIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0 | 92 | userListCurrentIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0 | ||
93 | showUserList: (userListModel.count && userListModel.disableAvatarsThreshold) ? userListModel.count <= userListModel.disableAvatarsThreshold : true | 93 | showUserList: { | ||
94 | if ( !userListModel.hasOwnProperty("count") | ||||
95 | || !userListModel.hasOwnProperty("disableAvatarsThreshold")) | ||||
96 | return true | ||||
97 | | ||||
98 | if ( userListModel.count == 0 ) return false | ||||
99 | | ||||
100 | return userListModel.count <= userListModel.disableAvatarsThreshold | ||||
101 | } | ||||
94 | 102 | | |||
95 | notificationMessage: { | 103 | notificationMessage: { | ||
96 | var text = "" | 104 | var text = "" | ||
97 | if (keystateSource.data["Caps Lock"]["Locked"]) { | 105 | if (keystateSource.data["Caps Lock"]["Locked"]) { | ||
98 | text += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on") | 106 | text += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on") | ||
99 | if (root.notificationMessage) { | 107 | if (root.notificationMessage) { | ||
100 | text += " • " | 108 | text += " • " | ||
101 | } | 109 | } | ||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |