Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 172 | initialItem: Login { | |||
---|---|---|---|---|---|
177 | lastUserName: userModel.lastUser | 177 | lastUserName: userModel.lastUser | ||
178 | showUserList: { | 178 | showUserList: { | ||
179 | if ( !userListModel.hasOwnProperty("count") | 179 | if ( !userListModel.hasOwnProperty("count") | ||
180 | || !userListModel.hasOwnProperty("disableAvatarsThreshold")) | 180 | || !userListModel.hasOwnProperty("disableAvatarsThreshold")) | ||
181 | return (userList.y + mainStack.y) > 0 | 181 | return (userList.y + mainStack.y) > 0 | ||
182 | 182 | | |||
183 | if ( userListModel.count === 0 ) return false | 183 | if ( userListModel.count === 0 ) return false | ||
184 | 184 | | |||
185 | if ( userListModel.hasOwnProperty("containsAllUsers") && !userListModel.containsAllUsers ) return false | ||||
186 | | ||||
185 | return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0 | 187 | return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0 | ||
186 | } | 188 | } | ||
187 | 189 | | |||
188 | notificationMessage: { | 190 | notificationMessage: { | ||
189 | var text = "" | 191 | var text = "" | ||
190 | if (keystateSource.data["Caps Lock"]["Locked"]) { | 192 | if (keystateSource.data["Caps Lock"]["Locked"]) { | ||
191 | text += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on") | 193 | text += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on") | ||
192 | if (root.notificationMessage) { | 194 | if (root.notificationMessage) { | ||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |