screenShield: Cleanup _ensureUnlockDialog

Just like on ScreenShield.activate(), we can just ensure the
unlock screen on ScreenShield.showDialog().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
This commit is contained in:
Georges Basile Stavracas Neto 2019-12-02 12:36:38 -03:00 committed by Florian Müllner
parent 727c84251d
commit fd484099ae

View File

@ -328,8 +328,7 @@ var ScreenShield = class {
this.actor.show();
this._isGreeter = Main.sessionMode.isGreeter;
this._isLocked = true;
if (this._ensureUnlockDialog(true))
this._hideLockScreen(false);
this._ensureUnlockDialog(true);
}
_hideLockScreenComplete() {