!101 issue#I90MAJ【重要】【生物识别认证】权限设置中取消解锁锁屏,锁屏后仍能使用特征进行认证

Merge pull request !101 from 刘远鹏/openkylin/nile
This commit is contained in:
杨敏 2024-10-10 02:44:24 +00:00 committed by Gitee
commit 8a8efe3ffc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include "../dbusifs/biometrichelper.h"
#include "klabel.h"
#include "common/configuration.h"
#include "common/global_utils.h"
#include "pluginsloader.h"
#include <QLabel>
#include <QVBoxLayout>
@ -358,7 +359,12 @@ void LoginOptionsWidget::setUser(int uid)
void LoginOptionsWidget::readDevicesInfo()
{
m_mapDevices.clear();
bool isAuthEnable = getBioAuthEnable(ENABLETYPE_GREETER);
bool isAuthEnable;
if (isGreeterMode()) {
isAuthEnable = getBioAuthEnable(ENABLETYPE_GREETER);
} else {
isAuthEnable = getBioAuthEnable(ENABLETYPE_SAVER);
}
bool isQRCodeEnable = getQRCodeEnable();
DeviceList deviceList = m_biomericProxy->GetDevList();
QStringList listDefDevices = getAllDefDevices();