gdm: Don't bother passing a Hold through to the authPrompt
beginVerificationForUser is always the last task in the last, so it doesn't matter when it's released.
This commit is contained in:
parent
ebef4ff174
commit
97e0175f48
@ -823,11 +823,7 @@ const LoginDialog = new Lang.Class({
|
|||||||
this._authPrompt.setUser(item.user);
|
this._authPrompt.setUser(item.user);
|
||||||
|
|
||||||
let userName = item.user.get_user_name();
|
let userName = item.user.get_user_name();
|
||||||
let hold = new Batch.Hold();
|
this._authPrompt.begin({ userName: userName });
|
||||||
|
|
||||||
this._authPrompt.begin({ userName: userName,
|
|
||||||
hold: hold });
|
|
||||||
return hold;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onUserListActivated: function(activatedItem) {
|
_onUserListActivated: function(activatedItem) {
|
||||||
@ -842,9 +838,9 @@ const LoginDialog = new Lang.Class({
|
|||||||
|
|
||||||
this._updateCancelButton();
|
this._updateCancelButton();
|
||||||
|
|
||||||
let batch = new Batch.ConcurrentBatch(this, [new Batch.ConsecutiveBatch(this, tasks),
|
let batch = new Batch.ConsecutiveBatch(this, tasks);
|
||||||
this._beginVerificationForItem(activatedItem)]);
|
|
||||||
batch.run();
|
batch.run();
|
||||||
|
this._beginVerificationForItem(activatedItem);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDestroy: function() {
|
_onDestroy: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user