gdm: Remove params from AuthPrompt.begin();
It's just one parameter now.
This commit is contained in:
parent
6d8d094e0c
commit
b978d99820
@ -471,12 +471,10 @@ const AuthPrompt = new Lang.Class({
|
||||
this._entry.clutter_text.insert_unichar(unichar);
|
||||
},
|
||||
|
||||
begin: function(params) {
|
||||
params = Params.parse(params, { userName: null });
|
||||
|
||||
begin: function(userName) {
|
||||
this.updateSensitivity(false);
|
||||
|
||||
this._userVerifier.begin(params.userName);
|
||||
this._userVerifier.begin(userName);
|
||||
this.verificationStatus = AuthPromptStatus.VERIFYING;
|
||||
},
|
||||
|
||||
|
@ -625,7 +625,7 @@ const LoginDialog = new Lang.Class({
|
||||
this._user = this._userManager.get_user(answer);
|
||||
this._authPrompt.clear();
|
||||
this._authPrompt.startSpinning();
|
||||
this._authPrompt.begin({ userName: answer });
|
||||
this._authPrompt.begin(answer);
|
||||
this._updateCancelButton();
|
||||
|
||||
realmManager.disconnect(realmSignalId)
|
||||
@ -823,7 +823,7 @@ const LoginDialog = new Lang.Class({
|
||||
this._authPrompt.setUser(item.user);
|
||||
|
||||
let userName = item.user.get_user_name();
|
||||
this._authPrompt.begin({ userName: userName });
|
||||
this._authPrompt.begin(userName);
|
||||
},
|
||||
|
||||
_onUserListActivated: function(activatedItem) {
|
||||
|
@ -109,7 +109,7 @@ const UnlockDialog = new Lang.Class({
|
||||
userName = null;
|
||||
}
|
||||
|
||||
this._authPrompt.begin({ userName: userName });
|
||||
this._authPrompt.begin(userName);
|
||||
},
|
||||
|
||||
_escape: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user