mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Switch to private account on selecting to not use public location (#212)
This commit is contained in:
@@ -174,12 +174,8 @@ struct YatteeApp: App {
|
||||
}
|
||||
#endif
|
||||
|
||||
if Defaults[.lastAccountID] != "public",
|
||||
let account = accounts.lastUsed ??
|
||||
instances.lastUsed?.anonymousAccount ??
|
||||
InstancesModel.all.first?.anonymousAccount
|
||||
{
|
||||
accounts.setCurrent(account)
|
||||
if Defaults[.lastAccountID] != "public" {
|
||||
accounts.configureAccount()
|
||||
}
|
||||
|
||||
let countryOfPublicInstances = Defaults[.countryOfPublicInstances]
|
||||
|
Reference in New Issue
Block a user