From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: config/lua: init lua config manager, use lua if available (#13817) Adds a new lua config manager, which will automatically be used if there is a lua config present. --- src/managers/SessionLockManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/SessionLockManager.cpp') diff --git a/src/managers/SessionLockManager.cpp b/src/managers/SessionLockManager.cpp index e729ae95..8890e2e0 100644 --- a/src/managers/SessionLockManager.cpp +++ b/src/managers/SessionLockManager.cpp @@ -49,7 +49,7 @@ CSessionLockManager::CSessionLockManager() { } void CSessionLockManager::onNewSessionLock(SP pLock) { - static auto PALLOWRELOCK = CConfigValue("misc:allow_session_lock_restore"); + static auto PALLOWRELOCK = CConfigValue("misc:allow_session_lock_restore"); if (PROTO::sessionLock->isLocked() && !*PALLOWRELOCK) { LOGM(Log::DEBUG, "Cannot re-lock, misc:allow_session_lock_restore is disabled"); @@ -224,7 +224,7 @@ bool CSessionLockManager::shallConsiderLockMissing() { if (!m_sessionLock) return true; - static auto LOCKDEAD_SCREEN_DELAY = CConfigValue("misc:lockdead_screen_delay"); + static auto LOCKDEAD_SCREEN_DELAY = CConfigValue("misc:lockdead_screen_delay"); return m_sessionLock->lockTimer.getMillis() > *LOCKDEAD_SCREEN_DELAY; } -- cgit v1.2.3