implement auto login and remember password

This commit is contained in:
Eduardo Bart
2011-11-16 16:59:55 -02:00
parent f381cb0a74
commit 9159e14895
6 changed files with 62 additions and 10 deletions

View File

@@ -14,7 +14,6 @@ MainWindow
LineEdit
id: accountNameLineEdit
text: otclient0
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
@@ -30,7 +29,6 @@ MainWindow
PasswordLineEdit
id: accountPasswordLineEdit
text: 123456
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
@@ -41,17 +39,23 @@ MainWindow
CheckBox
id: rememberPasswordBox
text: Remember password
checked: true
tooltip: Remember account and password when starts otclient
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin.top: 10
margin.left: 18
margin.right: 18
@onCheckChange: |
function(self, checked)
self:getParent():getChildById('autoLoginBox'):setEnabled(checked)
end
CheckBox
id: autoLoginBox
enabled: false
text: Auto login
tooltip: Open charlist automatically when starting otclient
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom