Skip to content

Commit 442c1ff

Browse files
pengfeixxdeepin-bot[bot]
authored andcommitted
fix: Fixed the issue that other account status was abnormal
Fixed the issue that other account status was abnormal Log: Fixed the issue that other account status was abnormal pms: BUG-298649
1 parent b7db235 commit 442c1ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/plugin-accounts/qml/AccountSettings.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ DccObject {
1616
property bool nopasswdLoginChecked: true
1717

1818
Component.onCompleted: {
19+
updateLoginSettings()
20+
}
21+
22+
onUserIdChanged: {
23+
updateLoginSettings()
24+
}
25+
26+
function updateLoginSettings() {
1927
settings.autoLoginChecked = dccData.autoLogin(settings.userId)
2028
settings.nopasswdLoginChecked = dccData.nopasswdLogin(settings.userId)
2129
}

0 commit comments

Comments
 (0)