mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Only migrate settings once
This commit is contained in:
@@ -410,6 +410,8 @@ object LocalPreferences {
|
||||
}
|
||||
|
||||
suspend fun migrateTorSettings(context: Context) {
|
||||
if (encryptedPreferences(context).contains(SettingsKeys.USE_PROXY)) return
|
||||
|
||||
val useProxy = allSavedAccounts(context).any {
|
||||
encryptedPreferences(context, it.npub).getBoolean(SettingsKeys.USE_PROXY, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user