Skip to content

Commit d1dc492

Browse files
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#53
1 parent b716736 commit d1dc492

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/dde-lock/lockworker.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ void LockWorker::initConnections()
138138
emit m_model->authFinished(true);
139139
});
140140

141-
#ifdef ENABLE_DSS_SNIPE
142-
connect(m_sessionManagerInter, &SessionManagerInter::LockedChanged, this, [ this ](bool locked) {
143-
qDebug() << "SessionManagerInter::LockedChanged" << locked;
144-
if (locked && !m_model->visible()) {
145-
m_model->showLockScreen();
146-
}
147-
});
148-
#endif
149-
150141
/* org.freedesktop.login1.Session */
151142
connect(m_login1SessionSelf, &Login1SessionSelf::ActiveChanged, this, [this](bool active) {
152143
qCInfo(DDE_SHELL) << "DBus lock service active changed, active: " << active << ", model visible: " << m_model->visible();
@@ -155,6 +146,9 @@ void LockWorker::initConnections()
155146
return;
156147
}
157148

149+
if (active && !m_model->visible()) {
150+
m_model->showLockScreen();
151+
}
158152
if (active && m_model->visible()) {
159153
createAuthentication(m_model->currentUser()->name());
160154
} else {

0 commit comments

Comments
 (0)