mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
unlockDialog: Call AuthPrompt.addCharacter() directly
The additional function UnlockDialog.addCharacter() is only used at one place, so we can simply remove it and call AuthPrompt.addCharacter() directly. The AuthPrompt is shown right before that anyway. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1209
This commit is contained in:
parent
3199620a83
commit
fb1bb291eb
1 changed files with 1 additions and 6 deletions
|
|
@ -605,7 +605,7 @@ var UnlockDialog = GObject.registerClass({
|
|||
this._showPrompt();
|
||||
|
||||
if (GLib.unichar_isgraph(unichar))
|
||||
this.addCharacter(unichar);
|
||||
this._authPrompt.addCharacter(unichar);
|
||||
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
|
|
@ -835,11 +835,6 @@ var UnlockDialog = GObject.registerClass({
|
|||
this._authPrompt.cancel();
|
||||
}
|
||||
|
||||
addCharacter(unichar) {
|
||||
this._showPrompt();
|
||||
this._authPrompt.addCharacter(unichar);
|
||||
}
|
||||
|
||||
finish(onComplete) {
|
||||
this._ensureAuthPrompt();
|
||||
this._authPrompt.finish(onComplete);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue