Skip to content

Commit 527e1d7

Browse files
committed
fix: add debug logging and fix user list visibility
1. Added debug log messages using qCInfo to track visibility state changes in LockContent 2. Fixed user list display sequence by setting model visibility before emitting lock state change 3. Added logging for authentication success, mouse click in shutdown mode, ESC key handling, and various show methods 4. Improved debugging capability for lock screen state transitions and visibility management Log: Added visibility state tracking for lock screen operations Influence: 1. Test lock screen authentication flow and verify proper hiding after successful auth 2. Test user switching functionality and ensure user list displays correctly 3. Test ESC key behavior in different modes (shutdown, power, password) 4. Verify shutdown interface hides properly when clicking outside buttons 5. Check all visibility state transitions work as expected feat: 添加调试日志并修复用户列表可见性问题 1. 使用 qCInfo 添加调试日志消息,用于跟踪 LockContent 中的可见性状态变化 2. 通过先设置模型可见性再发出锁定状态更改信号来修复用户列表显示顺序 3. 为认证成功、关机模式下的鼠标点击、ESC 键处理和各种显示方法添加了日志 记录 4. 改进了锁屏状态转换和可见性管理的调试能力 Log: 新增锁屏操作可见性状态跟踪功能 Influence: 1. 测试锁屏认证流程,验证认证成功后正确隐藏 2. 测试用户切换功能,确保用户列表正确显示 3. 测试不同模式(关机、电源、密码)下的 ESC 键行为 4. 验证点击按钮外部时关机界面正确隐藏 5. 检查所有可见性状态转换是否按预期工作 PMS: BUG-341543
1 parent 740630f commit 527e1d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/session-widgets/lockcontent.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ void LockContent::pushUserFrame()
410410

411411
// 用户列表界面显示时,设置锁屏状态为锁定
412412
// 主要是为了处理需求:切换用户界面属于进入锁屏,待机唤醒时仍进入锁屏界面,需输入密码进入系统。
413+
// 需要先显示用户列表界面,再发出锁定信号,避免直接进入密码界面。
414+
m_model->setVisible(true);
413415
Q_EMIT requestLockStateChange(true);
414416
}
415417

0 commit comments

Comments
 (0)