forked from Silverfish/proton-bridge
GODT-1385: Fix port setting
This commit is contained in:
@ -135,6 +135,8 @@ SettingsView {
|
|||||||
submitButton.loading = false
|
submitButton.loading = false
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
function submit(){
|
function submit(){
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with ProtonMail Bridge. If not, see <https://www.gnu.org/licenses/>.
|
// along with ProtonMail Bridge. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//go:build build_qt
|
||||||
// +build build_qt
|
// +build build_qt
|
||||||
|
|
||||||
package qt
|
package qt
|
||||||
@ -116,6 +117,7 @@ func (f *FrontendQt) toggleUseSSLforSMTP(makeItEnabled bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *FrontendQt) changePorts(imapPort, smtpPort int) {
|
func (f *FrontendQt) changePorts(imapPort, smtpPort int) {
|
||||||
|
defer f.qml.ChangePortFinished()
|
||||||
f.settings.SetInt(settings.IMAPPortKey, imapPort)
|
f.settings.SetInt(settings.IMAPPortKey, imapPort)
|
||||||
f.settings.SetInt(settings.SMTPPortKey, smtpPort)
|
f.settings.SetInt(settings.SMTPPortKey, smtpPort)
|
||||||
f.restart()
|
f.restart()
|
||||||
|
|||||||
Reference in New Issue
Block a user