[gnome-shell] screenShield: Don't lock after crash if locking is disabled



commit 73362beb0b8006c424c56b3903956c8e1b029aea
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Jul 26 00:21:30 2013 +0200

    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

 js/ui/screenShield.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 03e457c..6aef53b 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1335,6 +1335,8 @@ const ScreenShield = new Lang.Class({
 
     // If the previous shell crashed, and gnome-session restarted us, then re-lock
     lockIfWasLocked: function() {
+        if (!this._settings.get_boolean(LOCK_ENABLED_KEY))
+            return;
         let wasLocked = global.get_runtime_state('b', LOCKED_STATE_STR);
         if (wasLocked === null)
             return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]