Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/dde-lock/lockworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,18 +978,20 @@ void LockWorker::createAuthentication(const QString &account)

if (user_ptr->isNoPasswordLogin()) {
qCInfo(DDE_SHELL) << "User is no password login";
// Quick login must lock before the core target can start Power1.
// Querying SleepLock here would wait for that target and time out.
if (m_model->isQuickLoginProcess()) {
qCInfo(DDE_SHELL) << "Quick login requires screen lock";
setLocked(true);
m_model->setQuickLoginProcess(false);
}
// 无密码登录锁定后也属于锁屏,需要设置lock属性
#ifndef ENABLE_DSS_SNIPE
if (m_model->getPowerGSettings("", "sleepLock").toBool()) {
else if (m_model->getPowerGSettings("", "sleepLock").toBool()) {
#else
if (isSleepLock()) {
else if (isSleepLock()) {
#endif
setLocked(true);
} else if (m_model->isQuickLoginProcess()) {
//若此次程序拉起为快速登录流程,需要锁屏
qCInfo(DDE_SHELL) << "Quick login requires screen lock";
setLocked(true);
m_model->setQuickLoginProcess(false);
}

return;
Expand Down
Loading