gdm/util: Early initialize all internal properties
These may be used later by methods called by constructors, so ensure that they're all defined early. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
This commit is contained in:
parent
290e705c89
commit
f1c0f65075
@ -103,10 +103,22 @@ export class ShellUserVerifier extends Signals.EventEmitter {
|
||||
this._reauthOnly = params.reauthenticationOnly;
|
||||
|
||||
this._client = client;
|
||||
this._cancellable = null;
|
||||
|
||||
this._defaultService = null;
|
||||
this._preemptingService = null;
|
||||
|
||||
this._messageQueue = [];
|
||||
this._messageQueueTimeoutId = 0;
|
||||
|
||||
this._failCounter = 0;
|
||||
this._unavailableServices = new Set();
|
||||
|
||||
this._credentialManagers = {};
|
||||
|
||||
this.reauthenticating = false;
|
||||
this.smartcardDetected = false;
|
||||
|
||||
this._settings = new Gio.Settings({schema_id: LOGIN_SCREEN_SCHEMA});
|
||||
this._settings.connect('changed',
|
||||
this._updateDefaultService.bind(this));
|
||||
@ -131,15 +143,6 @@ export class ShellUserVerifier extends Signals.EventEmitter {
|
||||
'smartcard-inserted', this._checkForSmartcard.bind(this),
|
||||
'smartcard-removed', this._checkForSmartcard.bind(this), this);
|
||||
|
||||
this._messageQueue = [];
|
||||
this._messageQueueTimeoutId = 0;
|
||||
this.reauthenticating = false;
|
||||
|
||||
this._failCounter = 0;
|
||||
this._unavailableServices = new Set();
|
||||
|
||||
this._credentialManagers = {};
|
||||
|
||||
this.addCredentialManager(OVirt.SERVICE_NAME, OVirt.getOVirtCredentialsManager());
|
||||
this.addCredentialManager(Vmware.SERVICE_NAME, Vmware.getVmwareCredentialsManager());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user