gdm: Merge clear() and cancel()
cancel() isn't used anymore.
This commit is contained in:
parent
84431cbc65
commit
056375cbcf
@ -193,16 +193,6 @@ const ShellUserVerifier = new Lang.Class({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
cancel: function() {
|
|
||||||
if (this._cancellable)
|
|
||||||
this._cancellable.cancel();
|
|
||||||
|
|
||||||
if (this._userVerifier) {
|
|
||||||
this._userVerifier.call_cancel_sync(null);
|
|
||||||
this.clear();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
clear: function() {
|
clear: function() {
|
||||||
if (this._cancellable) {
|
if (this._cancellable) {
|
||||||
this._cancellable.cancel();
|
this._cancellable.cancel();
|
||||||
@ -210,6 +200,7 @@ const ShellUserVerifier = new Lang.Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this._userVerifier) {
|
if (this._userVerifier) {
|
||||||
|
this._userVerifier.call_cancel_sync(null);
|
||||||
this._userVerifier.run_dispose();
|
this._userVerifier.run_dispose();
|
||||||
this._userVerifier = null;
|
this._userVerifier = null;
|
||||||
}
|
}
|
||||||
@ -531,7 +522,7 @@ const ShellUserVerifier = new Lang.Class({
|
|||||||
if (canRetry)
|
if (canRetry)
|
||||||
this._retry();
|
this._retry();
|
||||||
else
|
else
|
||||||
this.cancel();
|
this.clear();
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user