fix(slock): fix lock target when attempting to enable multiple locks

This commit is contained in:
outfoxxed committed 2024-02-28 23:02:53 -08:00
1 parent b05d98b56d
commit a255889e5c
1 file changed
+2 -2
+2 -2
View File
@@ -46,7 +46,7 @@ void SessionLock::onReload(QObject* oldInstance) {
// clang-format on
if (this->lockTarget) {
this->manager->lock();
if (!this->manager->lock()) this->lockTarget = false;
this->updateSurfaces(old);
} else {
this->setLocked(false);
@@ -133,7 +133,7 @@ void SessionLock::setLocked(bool locked) {
}
if (locked) {
this->manager->lock();
if (!this->manager->lock()) this->lockTarget = false;
this->updateSurfaces();
if (this->lockTarget) emit this->lockStateChanged();
} else {