Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37741909
en ru br
ALT Linux repositórios
S:5.27.8-alt1

Group :: Desktop gráfico/KDE
RPM: plasma5-workspace

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: alt-breeze-autoupdate-username.patch
Download


--- a/lookandfeel/org.kde.breeze/contents/components/SessionManagementScreen.qml
+++ b/lookandfeel/org.kde.breeze/contents/components/SessionManagementScreen.qml
@@ -76,6 +76,9 @@ FocusScope {
         fontSize: root.fontSize
         // bubble up the signal
         onUserSelected: root.userSelected()
+        onCurrentItemChanged: {
+            userNameInput.text = currentItem.userName
+        }
     }
 
     //goal is to show the prompts, in ~16 grid units high, then the action buttons
@@ -125,5 +128,6 @@ FocusScope {
         Item {
             Layout.fillHeight: true
         }
+
     }
 }
--- a/lookandfeel/sddm-theme/Main.qml
+++ b/lookandfeel/sddm-theme/Main.qml
@@ -172,7 +172,7 @@ PlasmaCore.ColorScope {
                 id: userListComponent
                 userListModel: userModel
                 loginScreenUiVisible: loginScreenRoot.uiVisible
-                userListCurrentIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0
+                userListCurrentIndex: userModel.lastIndex
                 lastUserName: userModel.lastUser
                 showUserList: {
                     if ( !userListModel.hasOwnProperty("count")
--- a/lookandfeel/sddm-theme/Login.qml
+++ b/lookandfeel/sddm-theme/Login.qml
@@ -55,7 +55,7 @@ SessionManagementScreen {
      * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex
      */
     function startLogin() {
-        const username = showUsernamePrompt ? userNameInput.text : userList.selectedUser
+        const username = (userNameInput.text == "") ? userList.selectedUser : userNameInput.text
         const password = passwordBox.text
 
         footer.enabled = false
@@ -77,8 +77,7 @@ SessionManagementScreen {
         Layout.fillWidth: true
 
         text: lastUserName
-        visible: showUsernamePrompt
-        focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does
+        focus: !lastUserName //if there's a username prompt it gets focus first, otherwise password does
         placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username")
 
         onAccepted: {
@@ -97,7 +96,7 @@ SessionManagementScreen {
             Layout.fillWidth: true
 
             placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
-            focus: !showUsernamePrompt || lastUserName
+            focus: lastUserName
 
             // Disable reveal password action because SDDM does not have the breeze icon set loaded
             rightActions: []
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009