mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 22:56:48 +00:00
GODT-1251: Fix change SMTP settings
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ func (f *FrontendQt) toggleUseSSLforSMTP(makeItEnabled bool) {
|
||||
f.qml.SetUseSSLforSMTP(makeItEnabled)
|
||||
return
|
||||
}
|
||||
f.settings.SetBool(settings.SMTPPortKey, makeItEnabled)
|
||||
f.settings.SetBool(settings.SMTPSSLKey, makeItEnabled)
|
||||
f.restart()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user