authPrompt: Initialize property in _init()

This avoid a "reference to undefined property" warning when using
it in a comparison.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1035
This commit is contained in:
Florian Müllner 2020-02-20 15:57:36 +01:00 committed by verdre
parent 2c1d654035
commit ff39b3274b

View File

@ -55,6 +55,7 @@ var AuthPrompt = GObject.registerClass({
this._gdmClient = gdmClient;
this._mode = mode;
this._defaultButtonWellActor = null;
let reauthenticationOnly;
if (this._mode == AuthPromptMode.UNLOCK_ONLY)