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
parent 24d36e13ec
commit 4c288bd122

View File

@ -303,8 +303,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() {