mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 17:43:45 +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,
|
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()
|
||||||
|
@@ -472,7 +472,7 @@ fun LoginPage(
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
Spacer(modifier = Modifier.height(10.dp))
|
Spacer(modifier = Modifier.height(10.dp))
|
||||||
|
|
||||||
if (PackageUtils.isOrbotInstalled(context)) {
|
if (PackageUtils.isOrbotInstalled(context)) {
|
||||||
@@ -510,7 +510,6 @@ fun LoginPage(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (isFirstLogin) {
|
if (isFirstLogin) {
|
||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||||
|
Reference in New Issue
Block a user