Closed zsien closed 1 day ago
/approved
关键摘要:
LockWorker
构造函数中,m_powerGsettings
的初始化放在了if
语句中,这可能导致m_powerGsettings
在某些情况下未被初始化。doPowerAction
函数中,m_model
的setIsBlackMode
和setVisible
方法被调用,但没有检查m_model
是否为nullptr
,可能会导致空指针解引用。doPowerAction
函数中的delayTime
变量被硬编码为500,建议将其定义为常量或从配置文件中读取。AuthInterface
类中新增了m_powerGsettings
成员变量,但没有相应的注释说明其用途。是否建议立即修改: 是
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: fly602, zsien
The full list of commands accepted by this bot can be found here.
… not work
判断 sleep-lock 状态
Bug: https://pms.uniontech.com/bug-view-287959.html