diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 6c519a647..30d04d5c5 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -62,7 +62,6 @@ var AuthenticationDialog = GObject.registerClass({ iconSize: DIALOG_ICON_SIZE, styleClass: 'polkit-dialog-user-icon', }); - this._userAvatar.hide(); userBox.add_child(this._userAvatar); this._userLabel = new St.Label({ @@ -305,12 +304,10 @@ var AuthenticationDialog = GObject.registerClass({ let userName = this._user.get_user_name(); let realName = this._user.get_real_name(); - if (userName !== 'root') { + if (userName !== 'root') this._userLabel.set_text(realName); - this._userAvatar.update(); - this._userAvatar.show(); - } + this._userAvatar.update(); } cancel() {