change the logic for saving of proxy state
This commit is contained in:
@@ -252,7 +252,7 @@ class AccountSettings(
|
|||||||
portNumber: String,
|
portNumber: String,
|
||||||
) {
|
) {
|
||||||
val port = portNumber.toIntOrNull() ?: return
|
val port = portNumber.toIntOrNull() ?: return
|
||||||
if (proxyPort != port && isProxyEnabled() != enabled) {
|
if (proxyPort != port || isProxyEnabled() != enabled) {
|
||||||
proxyPort = portNumber.toInt()
|
proxyPort = portNumber.toInt()
|
||||||
proxy = HttpClientManager.initProxy(enabled, "127.0.0.1", proxyPort)
|
proxy = HttpClientManager.initProxy(enabled, "127.0.0.1", proxyPort)
|
||||||
saveAccountSettings()
|
saveAccountSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user