diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/managers/SessionLockManager.cpp | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
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.
Diffstat (limited to 'src/managers/SessionLockManager.cpp')
| -rw-r--r-- | src/managers/SessionLockManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<CSessionLock> pLock) { - static auto PALLOWRELOCK = CConfigValue<Hyprlang::INT>("misc:allow_session_lock_restore"); + static auto PALLOWRELOCK = CConfigValue<Config::INTEGER>("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<Hyprlang::INT>("misc:lockdead_screen_delay"); + static auto LOCKDEAD_SCREEN_DELAY = CConfigValue<Config::INTEGER>("misc:lockdead_screen_delay"); return m_sessionLock->lockTimer.getMillis() > *LOCKDEAD_SCREEN_DELAY; } |
