mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-09 20:39:24 +02:00
change the logic for saving of proxy state
This commit is contained in:
parent
b1f1466e6b
commit
1e61162f73
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user