Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Login.qml
Show All 31 Lines | 9 | SessionManagementScreen { | |||
---|---|---|---|---|---|
32 | /* | 32 | /* | ||
33 | * Login has been requested with the following username and password | 33 | * Login has been requested with the following username and password | ||
34 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | 34 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | ||
35 | */ | 35 | */ | ||
36 | function startLogin() { | 36 | function startLogin() { | ||
37 | var username = showUsernamePrompt ? userNameInput.text : userList.selectedUser | 37 | var username = showUsernamePrompt ? userNameInput.text : userList.selectedUser | ||
38 | var password = passwordBox.text | 38 | var password = passwordBox.text | ||
39 | 39 | | |||
40 | footer.enabled = false | ||||
41 | mainStack.enabled = false | ||||
42 | userListComponent.userList.opacity = 0.5 | ||||
43 | | ||||
40 | //this is partly because it looks nicer | 44 | //this is partly because it looks nicer | ||
41 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | 45 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | ||
42 | //DAVE REPORT THE FRICKING THING AND PUT A LINK | 46 | //DAVE REPORT THE FRICKING THING AND PUT A LINK | ||
43 | loginButton.forceActiveFocus(); | 47 | loginButton.forceActiveFocus(); | ||
44 | loginRequest(username, password); | 48 | loginRequest(username, password); | ||
45 | } | 49 | } | ||
46 | 50 | | |||
47 | PlasmaComponents.TextField { | 51 | PlasmaComponents.TextField { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |