userWidget: Adapt if user is not mentioned for username login
If username-based login flow is followed, we need a default avatar for the userWidget. Hence, check if the user passed to userWidget is (null) which implies a username-based login flow. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
This commit is contained in:

committed by
Florian Müllner

parent
aebea82474
commit
654093dc40
@ -424,10 +424,8 @@ var AuthPrompt = GObject.registerClass({
|
||||
if (oldChild)
|
||||
oldChild.destroy();
|
||||
|
||||
if (user) {
|
||||
let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
|
||||
this._userWell.set_child(userWidget);
|
||||
}
|
||||
let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
|
||||
this._userWell.set_child(userWidget);
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
Reference in New Issue
Block a user