@@ -116,15 +116,7 @@ Loader {
116116 text: i18n.tr("Show password")
117117 color: notification.sdFontColor
118118
119− onClicked: showPassword()
120− }
121−
122− function showPassword() {
123− if (checkBox.checked == true) {
124− checkBox.checked = false
125− } else {
126− checkBox.checked = true
127− }
119+ onClicked: checkBox.checked = !checkBox.checked
128120 }
129121 }
130122 }