GODT-1251: Fix change SMTP settings

This commit is contained in:
Alexander Bilyak
2021-11-03 12:10:05 +00:00
committed by Jakub
parent a93a8e7be9
commit 5637ca2529
2 changed files with 6 additions and 7 deletions

View File

@ -84,6 +84,8 @@ SettingsView {
submitButton.loading = true
root.submit()
}
enabled: sslButton.checked !== root.backend.useSSLforSMTP
}
Button {
@ -100,10 +102,6 @@ SettingsView {
}
}
onBack: {
root.setDefaultValues()
}
function submit(){
submitButton.loading = true
root.backend.toggleUseSSLforSMTP(sslButton.checked)
@ -114,6 +112,7 @@ SettingsView {
starttlsButton.checked = !root.backend.useSSLforSMTP
}
Component.onCompleted: root.setDefaultValues()
onVisibleChanged: {
root.setDefaultValues()
}
}