[gnome-shell/uajain/adapt-user-avatar-part2] fixup! userWidget: Revamp username-based login flow



commit 6f0b531fcdb46fb2dddd954066dbc0f3968794ac
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Feb 5 14:45:55 2020 -0300

    fixup! userWidget: Revamp username-based login flow

 js/gdm/authPrompt.js | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index b3704ccef3..24109c5004 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -473,12 +473,10 @@ var AuthPrompt = GObject.registerClass({
         if (oldChild)
             oldChild.destroy();
 
-        if (user) {
-            let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
-            this._userWell.set_child(userWidget);
-        } else if (!user && userNotListed) {
-            let userWidget = new UserWidget.UserWidget(null, Clutter.Orientation.VERTICAL);
-            this._userWell.set_child(userWidget);
+        let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
+        this._userWell.set_child(userWidget);
+
+        if (!user && userNotListed) {
             this._updateRowsForUsernameBasedLogin();
             this.verificationStatus = AuthPromptStatus.VERIFYING;
         }


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