Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/LockScreenUi.qml
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Line(s) | 243 | onLoginRequest: { | |||
---|---|---|---|---|---|
245 | authenticator.tryUnlock(password) | 245 | authenticator.tryUnlock(password) | ||
246 | } | 246 | } | ||
247 | 247 | | |||
248 | actionItems: [ | 248 | actionItems: [ | ||
249 | ActionButton { | 249 | ActionButton { | ||
250 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch User") | 250 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch User") | ||
251 | iconSource: "system-switch-user" | 251 | iconSource: "system-switch-user" | ||
252 | onClicked: mainStack.push(switchSessionPage) | 252 | onClicked: mainStack.push(switchSessionPage) | ||
253 | // the current session isn't listed in the model, hence a check for greater than zero, not one | 253 | visible: sessionsModel.canStartNewSession && sessionsModel.canSwitchUser | ||
254 | visible: (sessionsModel.count > 0 || sessionsModel.canStartNewSession) && sessionsModel.canSwitchUser | | |||
255 | } | 254 | } | ||
256 | ] | 255 | ] | ||
257 | 256 | | |||
258 | Loader { | 257 | Loader { | ||
259 | Layout.fillWidth: true | 258 | Layout.fillWidth: true | ||
260 | Layout.preferredHeight: item ? item.implicitHeight : 0 | 259 | Layout.preferredHeight: item ? item.implicitHeight : 0 | ||
261 | active: config.showMediaControls | 260 | active: config.showMediaControls | ||
262 | source: "MediaControls.qml" | 261 | source: "MediaControls.qml" | ||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |