screenShield: Don't lock after crash if locking is disabled
When the user has disabled locking we shouldn't lock the screen. https://bugzilla.gnome.org/show_bug.cgi?id=704884
This commit is contained in:
parent
52503c4c38
commit
73362beb0b
@ -1335,6 +1335,8 @@ const ScreenShield = new Lang.Class({
|
|||||||
|
|
||||||
// If the previous shell crashed, and gnome-session restarted us, then re-lock
|
// If the previous shell crashed, and gnome-session restarted us, then re-lock
|
||||||
lockIfWasLocked: function() {
|
lockIfWasLocked: function() {
|
||||||
|
if (!this._settings.get_boolean(LOCK_ENABLED_KEY))
|
||||||
|
return;
|
||||||
let wasLocked = global.get_runtime_state('b', LOCKED_STATE_STR);
|
let wasLocked = global.get_runtime_state('b', LOCKED_STATE_STR);
|
||||||
if (wasLocked === null)
|
if (wasLocked === null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user