mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 10:12:50 +02:00
Merge pull request #1040 from davotoula/1037-tor-setting-reset-to-off-after-switching-away
1037 tor setting reset to off after switching away
This commit is contained in:
@@ -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()
|
||||
|
@@ -472,7 +472,7 @@ fun LoginPage(
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
}
|
||||
Spacer(modifier = Modifier.height(10.dp))
|
||||
|
||||
if (PackageUtils.isOrbotInstalled(context)) {
|
||||
@@ -510,7 +510,6 @@ fun LoginPage(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isFirstLogin) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
|
Reference in New Issue
Block a user