fix(slock): make SessionLock.secure accurate

This commit is contained in:
outfoxxed 2024-02-28 21:41:30 -08:00
parent cbdfba1a3f
commit 0b529c6682
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 11 additions and 2 deletions

View file

@ -89,7 +89,10 @@ void SessionLock::updateSurfaces(SessionLock* old) {
instance->onReload(oldInstance);
this->surfaces[screen] = instance;
instance->show();
}
for (auto* surface: this->surfaces.values()) {
surface->show();
}
}
}
@ -117,7 +120,7 @@ bool SessionLock::isLocked() const {
}
bool SessionLock::isSecure() const {
return this->manager != nullptr && SessionLockManager::sessionLocked();
return this->manager != nullptr && SessionLockManager::isSecure();
}
void SessionLock::setLocked(bool locked) {