fix(login): Fixed an issue where login option permission Settings could not distinguish between login lock screens

Description: 修正了登录选项权限设置无法区分登录锁屏的问题

Log: issue#I90MAJ【重要】【生物识别认证】权限设置中取消解锁锁屏,锁屏后仍能使用特征进行认证
This commit is contained in:
liuyuanpeng 2024-09-18 09:26:42 +08:00
parent 04775fa3f8
commit f5d888992d
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();