screenShield: Don't wait until the dialog is loaded before opening it
If we wait asynchronously, key presses while the shield is opening will be dropped in the void. https://bugzilla.gnome.org/show_bug.cgi?id=686740
This commit is contained in:
@ -141,11 +141,6 @@ const UnlockDialog = new Lang.Class({
|
||||
let batch = new Batch.Hold();
|
||||
this._userVerifier.begin(this._userName, batch);
|
||||
|
||||
GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
|
||||
this.emit('loaded');
|
||||
return false;
|
||||
}));
|
||||
|
||||
Main.ctrlAltTabManager.addGroup(this.dialogLayout, _("Unlock Window"), 'dialog-password-symbolic');
|
||||
|
||||
this._idleMonitor = new GnomeDesktop.IdleMonitor();
|
||||
|
Reference in New Issue
Block a user