Really use the right getter

Doh, it is actually a uint, not an int.
This commit is contained in:
Matthias Clasen 2013-01-05 14:21:30 -05:00
parent 0e9ddd3b99
commit 9281129f07

View File

@ -641,7 +641,7 @@ const ScreenShield = new Lang.Class({
let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000; let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000;
let shouldLock = lightboxWasShown && let shouldLock = lightboxWasShown &&
this._settings.get_boolean(LOCK_ENABLED_KEY) && this._settings.get_boolean(LOCK_ENABLED_KEY) &&
(elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY)); (elapsedTime >= this._settings.get_uint(LOCK_DELAY_KEY));
if (shouldLock || this._isLocked) { if (shouldLock || this._isLocked) {
this.lock(false); this.lock(false);
} else if (this._isActive) { } else if (this._isActive) {