mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Improve sections visibility
This commit is contained in:
@@ -46,6 +46,10 @@ struct AdvancedSettings: View {
|
||||
InstancesManifest.shared.setPublicAccount(newCountry, accounts: accounts, asCurrent: accounts.current?.isPublic ?? true)
|
||||
}
|
||||
.onChange(of: instancesManifest) { _ in
|
||||
countryOfPublicInstances = nil
|
||||
if let account = accounts.current, account.isPublic {
|
||||
accounts.setCurrent(nil)
|
||||
}
|
||||
countries.removeAll()
|
||||
}
|
||||
.sheet(isPresented: $presentingInstanceForm) {
|
||||
|
Reference in New Issue
Block a user