[gnome-shell/uajain/adapt-user-avatar-part2: 8/22] loginDialog: Set null user when asking for username



commit ae26d8f74a259ea05e546e9b588387f8a1cd37eb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 6 16:24:32 2020 -0300

    loginDialog: Set null user when asking for username
    
    When going through the username + password login flow, set
    the username to 'null' to update the user avatar.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922

 js/gdm/loginDialog.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 1c28b37687..0d164ffac3 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -913,6 +913,7 @@ var LoginDialog = GObject.registerClass({
     }
 
     _askForUsernameAndBeginVerification() {
+        this._authPrompt.setUser(null);
         this._authPrompt.setQuestion(_("Username: "));
 
         this._showRealmLoginHint(this._realmManager.loginFormat);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]