change the logic for saving of proxy state

This commit is contained in:
David Kaspar 2024-09-01 17:05:20 +02:00
parent b1f1466e6b
commit 1e61162f73

View File

@ -252,7 +252,7 @@ class AccountSettings(
portNumber: String,
) {
val port = portNumber.toIntOrNull() ?: return
if (proxyPort != port && isProxyEnabled() != enabled) {
if (proxyPort != port || isProxyEnabled() != enabled) {
proxyPort = portNumber.toInt()
proxy = HttpClientManager.initProxy(enabled, "127.0.0.1", proxyPort)
saveAccountSettings()