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



commit 2996d7bfefe9d0a36f4737776aecf49c6df8e6f3
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 aadc748646..6202bdf296 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -909,6 +909,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]