feat(accounts): enable auto-login on treeland - #3442
Conversation
Remove treeland restriction on auto login settings and only hide quick login option on treeland. 移除treeland对自动登录设置的限制,在treeland下仅隐藏快速登录选项。 Log: 启用treeland自动登录 PMS: BUG-294419 Influence: treeland环境下账户模块现在支持自动登录。
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: glyvut The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates account settings visibility so Treeland supports auto-login configuration, while the quick-login option remains hidden there; related daemon-side configuration is expected to be handled separately. Flow diagram for Treeland account login settings visibilityflowchart TD
A[Account settings] --> B{Treeland environment?}
B -->|No| C[Show available auto-login and quick-login options]
B -->|Yes| D[Show auto-login settings]
D --> E[Hide quick-login option]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review★ 总体评分:100分 (大于70分通过)■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 本次变更无需修复,代码实现正确
// src/plugin-accounts/qml/AccountSettings.qml
// 父容器:移除 treeland 限制,使登录设置在 treeland 上可见
DccObject {
id: acountSettings
visible: autoLongin.visible || noPassword.visible || quickLogin.visible
// quickLogin:添加 treeland 限制,保持快速登录在 treeland 上隐藏
DccObject {
id: quickLogin
visible: dccData.isQuickLoginVisible && !DccApp.isTreeland()
}
// autoLongin:无 treeland 限制,在 treeland 上可见
DccObject {
id: autoLongin
visible: dccData.isAutoLoginVisable()
}
// noPassword:无 treeland 限制,在 treeland 上可见
DccObject {
id: noPassword
visible: dccData.isNoPassWordLoginVisable()
}
} |
Remove treeland restriction on auto login settings and only hide quick login option on treeland.
移除treeland对自动登录设置的限制,在treeland下仅隐藏快速登录选项。
Log: 启用treeland自动登录
PMS: BUG-294419
Influence: treeland环境下账户模块现在支持自动登录。
具体配置需 dde-daemon 处理 linuxdeepin/dde-daemon#1224
Summary by Sourcery
New Features: